Struct ruma_common::push::PushConditionRoomCtx [−][src]
pub struct PushConditionRoomCtx {
pub room_id: RoomId,
pub member_count: UInt,
pub user_display_name: String,
pub users_power_levels: BTreeMap<UserId, Int>,
pub default_power_level: Int,
pub notification_power_levels: NotificationPowerLevels,
}Expand description
The context of the room associated to an event to be able to test all push conditions.
Fields
room_id: RoomIdExpand description
The ID of the room.
member_count: UIntExpand description
The number of members in the room.
user_display_name: StringExpand description
The display name of the current user in the room.
users_power_levels: BTreeMap<UserId, Int>Expand description
The power levels of the users of the room.
default_power_level: IntExpand description
The default power level of the users of the room.
notification_power_levels: NotificationPowerLevelsExpand description
The notification power levels of the room.
Trait Implementations
impl Clone for PushConditionRoomCtx[src]
impl Clone for PushConditionRoomCtx[src]fn clone(&self) -> PushConditionRoomCtx[src]
fn clone(&self) -> PushConditionRoomCtx[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]Performs copy-assignment from source. Read more
Auto Trait Implementations
impl RefUnwindSafe for PushConditionRoomCtx
impl Send for PushConditionRoomCtx
impl Sync for PushConditionRoomCtx
impl Unpin for PushConditionRoomCtx
impl UnwindSafe for PushConditionRoomCtx
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T[src]
impl<T> Instrument for T[src]fn instrument(self, span: Span) -> Instrumented<Self>[src]
fn instrument(self, span: Span) -> Instrumented<Self>[src]Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>[src]
fn in_current_span(self) -> Instrumented<Self>[src]impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more