Struct ruma::push::PushConditionRoomCtx
source · 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more