Struct ruma_common::push::PushConditionRoomCtx
source · pub struct PushConditionRoomCtx {
pub room_id: OwnedRoomId,
pub member_count: UInt,
pub user_id: OwnedUserId,
pub user_display_name: String,
pub users_power_levels: BTreeMap<OwnedUserId, Int>,
pub default_power_level: Int,
pub notification_power_levels: NotificationPowerLevels,
pub supported_features: Vec<RoomVersionFeature>,
}
Expand description
The context of the room associated to an event to be able to test all push conditions.
Fields§
§room_id: OwnedRoomId
The ID of the room.
member_count: UInt
The number of members in the room.
user_id: OwnedUserId
The users matrix ID.
user_display_name: String
The display name of the current user in the room.
users_power_levels: BTreeMap<OwnedUserId, Int>
The power levels of the users of the room.
default_power_level: Int
The default power level of the users of the room.
notification_power_levels: NotificationPowerLevels
The notification power levels of the room.
supported_features: Vec<RoomVersionFeature>
Available on crate feature
unstable-msc3931
only.The list of features this room’s version or the room itself supports.
Trait Implementations§
source§impl Clone for PushConditionRoomCtx
impl Clone for PushConditionRoomCtx
source§fn clone(&self) -> PushConditionRoomCtx
fn clone(&self) -> PushConditionRoomCtx
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl RefUnwindSafe for PushConditionRoomCtx
impl Send for PushConditionRoomCtx
impl Sync for PushConditionRoomCtx
impl Unpin for PushConditionRoomCtx
impl UnwindSafe for PushConditionRoomCtx
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more