Struct matrix_sdk::StateChanges[][src]

pub struct StateChanges {
Show 15 fields pub sync_token: Option<String>, pub session: Option<Session>, pub account_data: BTreeMap<String, Raw<AnyGlobalAccountDataEvent>>, pub presence: BTreeMap<UserId, Raw<PresenceEvent>>, pub members: BTreeMap<RoomId, BTreeMap<UserId, MemberEvent>>, pub profiles: BTreeMap<RoomId, BTreeMap<UserId, MemberEventContent>>, pub state: BTreeMap<RoomId, BTreeMap<String, BTreeMap<String, Raw<AnySyncStateEvent>>>>, pub room_account_data: BTreeMap<RoomId, BTreeMap<String, Raw<AnyRoomAccountDataEvent>>>, pub room_infos: BTreeMap<RoomId, RoomInfo>, pub receipts: BTreeMap<RoomId, ReceiptEventContent>, pub stripped_state: BTreeMap<RoomId, BTreeMap<String, BTreeMap<String, Raw<AnyStrippedStateEvent>>>>, pub stripped_members: BTreeMap<RoomId, BTreeMap<UserId, StrippedMemberEvent>>, pub invited_room_info: BTreeMap<RoomId, RoomInfo>, pub ambiguity_maps: BTreeMap<RoomId, BTreeMap<String, BTreeSet<UserId>>>, pub notifications: BTreeMap<RoomId, Vec<Notification, Global>>,
}
Expand description

Store state changes and pass them to the StateStore.

Fields

sync_token: Option<String>

The sync token that relates to this update.

session: Option<Session>

A user session, containing an access token and information about the associated user account.

account_data: BTreeMap<String, Raw<AnyGlobalAccountDataEvent>>

A mapping of event type string to AnyBasicEvent.

presence: BTreeMap<UserId, Raw<PresenceEvent>>

A mapping of UserId to PresenceEvent.

members: BTreeMap<RoomId, BTreeMap<UserId, MemberEvent>>

A mapping of RoomId to a map of users and their MemberEvent.

profiles: BTreeMap<RoomId, BTreeMap<UserId, MemberEventContent>>

A mapping of RoomId to a map of users and their MemberEventContent.

state: BTreeMap<RoomId, BTreeMap<String, BTreeMap<String, Raw<AnySyncStateEvent>>>>

A mapping of RoomId to a map of event type string to a state key and AnySyncStateEvent.

room_account_data: BTreeMap<RoomId, BTreeMap<String, Raw<AnyRoomAccountDataEvent>>>

A mapping of RoomId to a map of event type string to AnyBasicEvent.

room_infos: BTreeMap<RoomId, RoomInfo>

A map of RoomId to RoomInfo.

receipts: BTreeMap<RoomId, ReceiptEventContent>

A map of RoomId to ReceiptEventContent.

stripped_state: BTreeMap<RoomId, BTreeMap<String, BTreeMap<String, Raw<AnyStrippedStateEvent>>>>

A mapping of RoomId to a map of event type to a map of state key to AnyStrippedStateEvent.

stripped_members: BTreeMap<RoomId, BTreeMap<UserId, StrippedMemberEvent>>

A mapping of RoomId to a map of users and their StrippedMemberEvent.

invited_room_info: BTreeMap<RoomId, RoomInfo>

A map of RoomId to RoomInfo.

ambiguity_maps: BTreeMap<RoomId, BTreeMap<String, BTreeSet<UserId>>>

A map from room id to a map of a display name and a set of user ids that share that display name in the given room.

notifications: BTreeMap<RoomId, Vec<Notification, Global>>

A map of RoomId to a vector of Notifications

Implementations

Create a new StateChanges struct with the given sync_token.

Update the StateChanges struct with the given PresenceEvent.

Update the StateChanges struct with the given RoomInfo.

Update the StateChanges struct with the given RoomInfo.

Update the StateChanges struct with the given AnyBasicEvent.

Update the StateChanges struct with the given room with a new AnyBasicEvent.

Update the StateChanges struct with the given room with a new StrippedMemberEvent.

Update the StateChanges struct with the given room with a new AnySyncStateEvent.

Update the StateChanges struct with the given room with a new Notification.

Update the StateChanges struct with the given room with a new Receipts.

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.