Struct matrix_sdk_base::deserialized_responses::SyncResponse [−][src]
pub struct SyncResponse {
pub next_batch: String,
pub rooms: Rooms,
pub presence: Presence,
pub account_data: GlobalAccountData,
pub to_device: ToDevice,
pub device_lists: DeviceLists,
pub device_one_time_keys_count: BTreeMap<DeviceKeyAlgorithm, u64>,
pub ambiguity_changes: AmbiguityChanges,
pub notifications: BTreeMap<RoomId, Vec<Notification, Global>>,
}
Fields
next_batch: String
The batch token to supply in the since
param of the next /sync
request.
rooms: Rooms
Updates to rooms.
presence: Presence
Updates to the presence status of other users.
account_data: GlobalAccountData
The global private data created by this user.
to_device: ToDevice
Messages sent directly between devices.
device_lists: DeviceLists
Information on E2E device updates.
Only present on an incremental sync.
device_one_time_keys_count: BTreeMap<DeviceKeyAlgorithm, u64>
For each key algorithm, the number of unclaimed one-time keys currently held on the server for a device.
ambiguity_changes: AmbiguityChanges
Collection of ambiguity changes that room member events trigger.
notifications: BTreeMap<RoomId, Vec<Notification, Global>>
New notifications per room.
Implementations
Trait Implementations
Returns the “default value” for a type. Read more
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<SyncResponse, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<SyncResponse, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for SyncResponse
impl Send for SyncResponse
impl Sync for SyncResponse
impl Unpin for SyncResponse
impl UnwindSafe for SyncResponse
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more