Function ruma::state_res::event_auth::get_user_power_level[][src]

pub fn get_user_power_level<E>(
    user_id: &UserId,
    auth_events: &BTreeMap<(EventType, String), Arc<E>>
) -> i64 where
    E: Event
This is supported on crate feature state-res only.
Expand description

Helper function to fetch a users default power level from a “m.room.power_level” event’s users object.