Struct ruma_events::room::member::MemberEvent [] [src]

pub struct MemberEvent {
    pub content: MemberEventContent,
    pub event_id: EventId,
    pub event_type: EventType,
    pub prev_content: Option<MemberEventContent>,
    pub room_id: RoomId,
    pub state_key: String,
    pub unsigned: Option<Value>,
    pub user_id: UserId,
    pub invite_room_state: Option<Vec<StrippedState>>,
}

The current membership state of a user in the room.

Adjusts the membership state for a user in a room. It is preferable to use the membership APIs (/rooms/<room id>/invite etc) when performing membership actions rather than adjusting the state directly as there are a restricted set of valid transformations. For example, user A cannot force user B to join a room, and trying to force this state change directly will fail.

The third_party_invite property will be set if this invite is an invite event and is the successor of an m.room.third_party_invite event, and absent otherwise.

This event may also include an invite_room_state key outside the content key. If present, this contains an array of StrippedState events. These events provide information on a few select state events such as the room name.

Fields

The event's content.

The unique identifier for the event.

The type of the event.

The previous content for this state key, if any.

The unique identifier for the room associated with this event.

A key that determines which piece of room state the event represents.

Additional key-value pairs not signed by the homeserver.

The unique identifier for the user associated with this event.

A subset of the state of the room at the time of the invite.

Trait Implementations

impl Clone for MemberEvent
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for MemberEvent
[src]

Formats the value using the given formatter.

impl Event for MemberEvent
[src]

The event-type-specific payload this event carries.

The event's content.

The type of the event.

Extra top-level key-value pairs specific to this event type, but that are not under the content field. Read more

impl RoomEvent for MemberEvent
[src]

The unique identifier for the event.

The unique identifier for the room associated with this event.

Additional key-value pairs not signed by the homeserver.

The unique identifier for the user associated with this event.

impl StateEvent for MemberEvent
[src]

The previous content for this state key, if any.

A key that determines which piece of room state the event represents.