pub struct PushConditionRoomCtx {
pub room_id: OwnedRoomId,
pub member_count: UInt,
pub user_id: OwnedUserId,
pub user_display_name: String,
pub power_levels: Option<PushConditionPowerLevelsCtx>,
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 user’s matrix ID.
user_display_name: String
The display name of the current user in the room.
power_levels: Option<PushConditionPowerLevelsCtx>
The room power levels context for the room.
If this is missing, push rules that require this will never match.
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 Freeze for PushConditionRoomCtx
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