Function ruma_state_res::event_auth::auth_types_for_event[][src]

pub fn auth_types_for_event(
    kind: &EventType,
    sender: &UserId,
    state_key: Option<&str>,
    content: &RawJsonValue
) -> Result<Vec<(EventType, String)>>
Expand description

For the given event kind what are the relevant auth events that are needed to authenticate this content.

Errors

This function will return an error if the supplied content is not a JSON object.