Struct sonicbot_matrix::EventResponse
source · [−]pub struct EventResponse {
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, UInt>,
pub device_unused_fallback_key_types: Option<Vec<DeviceKeyAlgorithm>>,
}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, UInt>For each key algorithm, the number of unclaimed one-time keys currently held on the server for a device.
device_unused_fallback_key_types: Option<Vec<DeviceKeyAlgorithm>>For each key algorithm, the number of unclaimed one-time keys currently held on the server for a device.
The presence of this field indicates that the server supports fallback keys.
Trait Implementations
Returns the “default value” for a type. Read more
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for EventResponse
impl Send for EventResponse
impl Sync for EventResponse
impl Unpin for EventResponse
impl UnwindSafe for EventResponse
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more