Skip to main content

Redaction

Type Alias Redaction 

Source
pub(crate) type Redaction = Result<PduEvent, Unparsable>;
Expand description

A redaction event the timeline stores, or a row typed a redaction that does not parse as one.

The event is carried as it was parsed, while a row that does not parse keeps its key and the parse error, so the check can name the row and the repair can log why it failed.

Aliased Type§

pub(crate) enum Redaction {
    Ok(Pdu),
    Err(Unparsable),
}

Variants§

§1.0.0

Ok(Pdu)

Contains the success value

§1.0.0

Err(Unparsable)

Contains the error value