Skip to main content

to_pdu_event

Function to_pdu_event 

Source
pub fn to_pdu_event<S>(
    id: &str,
    sender: &UserId,
    ev_type: TimelineEventType,
    state_key: Option<&str>,
    content: Box<RawValue>,
    auth_events: &[S],
    prev_events: &[S],
) -> PduEvent
where S: AsRef<str>,
Expand description

Builds a fixture PDU with synthetic identifiers and an increasing timestamp.

Auth and previous event references accept bare names or full identifiers.