#[non_exhaustive]pub struct RoomMemberUnsigned {
pub age: Option<Int>,
pub transaction_id: Option<OwnedTransactionId>,
pub replaces_state: Option<OwnedEventId>,
pub prev_content: Option<PossiblyRedactedRoomMemberEventContent>,
pub prev_sender: Option<OwnedUserId>,
pub invite_room_state: Vec<Raw<AnyStrippedStateEvent>>,
pub knock_room_state: Vec<Raw<AnyStrippedStateEvent>>,
pub membership: Option<MembershipState>,
pub relations: BundledStateRelations,
}events only.Expand description
Extra information about a message event that is not incorporated into the event’s hash.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.age: Option<Int>The time in milliseconds that has elapsed since the event was sent.
This field is generated by the local homeserver, and may be incorrect if the local time on at least one of the two servers is out of sync, which can cause the age to either be negative or greater than it actually is.
transaction_id: Option<OwnedTransactionId>The client-supplied transaction ID, if the client being given the event is the same one which sent it.
replaces_state: Option<OwnedEventId>The event ID of the state event replaced by this event.
This field is generated by the local homeserver. Unlike prev_content, it is included
regardless of history visibility.
prev_content: Option<PossiblyRedactedRoomMemberEventContent>Optional previous content of the event.
prev_sender: Option<OwnedUserId>The user ID of the sender of the state event replaced by this event.
This field is generated by the local homeserver. Unlike prev_content, it is included
regardless of history visibility.
invite_room_state: Vec<Raw<AnyStrippedStateEvent>>Stripped state events to assist the receiver in identifying the room when receiving an invite.
knock_room_state: Vec<Raw<AnyStrippedStateEvent>>Stripped state events to assist the receiver in identifying the room after knocking.
membership: Option<MembershipState>The room membership of the user making the request, at the time of the event.
This is the membership of the requesting user’s m.room.member state at the point of the
event, including any changes caused by the event, and not their current membership. It is
set to leave if the user had no m.room.member state at that point.
Homeservers should populate it wherever practical, but it may be missing. It is not normally present in events pushed to application services.
The event’s content.membership is the membership of the user in the state_key, while
this field is the membership of the user who made the request. The two are equal when the
state_key is the requesting user.
See the spec for more details.
relations: BundledStateRelationsBundled aggregations of related child events.
Implementations§
Source§impl RoomMemberUnsigned
impl RoomMemberUnsigned
Sourcepub fn new() -> RoomMemberUnsigned
pub fn new() -> RoomMemberUnsigned
Create a new Unsigned with fields set to None.
Trait Implementations§
Source§impl CanBeEmpty for RoomMemberUnsigned
impl CanBeEmpty for RoomMemberUnsigned
Source§fn is_empty(&self) -> bool
fn is_empty(&self) -> bool
Whether this unsigned data is empty (all fields are None).
This method is used to determine whether to skip serializing the unsigned field in room
events. Do not use it to determine whether an incoming unsigned field was present - it
could still have been present but contained none of the known fields.
Source§impl Clone for RoomMemberUnsigned
impl Clone for RoomMemberUnsigned
Source§fn clone(&self) -> RoomMemberUnsigned
fn clone(&self) -> RoomMemberUnsigned
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more