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: StringThe batch token to supply in the since param of the next /sync
request.
rooms: RoomsUpdates to rooms.
presence: PresenceUpdates to the presence status of other users.
account_data: GlobalAccountDataThe global private data created by this user.
to_device: ToDeviceMessages sent directly between devices.
device_lists: DeviceListsInformation 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: AmbiguityChangesCollection 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 SyncResponseimpl Send for SyncResponseimpl Sync for SyncResponseimpl Unpin for SyncResponseimpl UnwindSafe for SyncResponseBlanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
type Output = T
type Output = TShould always be Self