Struct ruma_client_api::sync::sync_events::v4::ToDeviceConfig
source · pub struct ToDeviceConfig {
pub enabled: Option<bool>,
pub limit: Option<UInt>,
pub since: Option<String>,
}Available on (crate features
client or server) and crate feature unstable-msc3575 only.Expand description
To-device messages extension configuration.
According to MSC3885.
Fields§
§enabled: Option<bool>Activate or deactivate this extension. Sticky.
limit: Option<UInt>Max number of to-device messages per response.
since: Option<String>Give messages since this token only.
Trait Implementations§
source§impl Clone for ToDeviceConfig
impl Clone for ToDeviceConfig
source§fn clone(&self) -> ToDeviceConfig
fn clone(&self) -> ToDeviceConfig
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for ToDeviceConfig
impl Debug for ToDeviceConfig
source§impl Default for ToDeviceConfig
impl Default for ToDeviceConfig
source§fn default() -> ToDeviceConfig
fn default() -> ToDeviceConfig
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ToDeviceConfig
impl<'de> Deserialize<'de> for ToDeviceConfig
source§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
source§impl PartialEq<ToDeviceConfig> for ToDeviceConfig
impl PartialEq<ToDeviceConfig> for ToDeviceConfig
source§fn eq(&self, other: &ToDeviceConfig) -> bool
fn eq(&self, other: &ToDeviceConfig) -> bool
This method tests for
self and other values to be equal, and is used
by ==.