#[non_exhaustive]pub enum DehydratedDeviceData {
    V1(DehydratedDeviceV1),
    V2(DehydratedDeviceV2),
}Available on crate feature 
api and (crate features client-api-c or client-api-s) only.Expand description
Data for a dehydrated device.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
V1(DehydratedDeviceV1)
The org.matrix.msc3814.v1.olm variant of a dehydrated device.
V2(DehydratedDeviceV2)
The org.matrix.msc3814.v2 variant of a dehydrated device.
Implementations§
Source§impl DehydratedDeviceData
 
impl DehydratedDeviceData
Sourcepub fn algorithm(&self) -> DeviceDehydrationAlgorithm
 
pub fn algorithm(&self) -> DeviceDehydrationAlgorithm
Get the algorithm this dehydrated device uses.
Trait Implementations§
Source§impl Clone for DehydratedDeviceData
 
impl Clone for DehydratedDeviceData
Source§fn clone(&self) -> DehydratedDeviceData
 
fn clone(&self) -> DehydratedDeviceData
Returns a duplicate 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 DehydratedDeviceData
 
impl Debug for DehydratedDeviceData
Source§impl<'de> Deserialize<'de> for DehydratedDeviceData
 
impl<'de> Deserialize<'de> for DehydratedDeviceData
Source§fn deserialize<__D>(
    __deserializer: __D,
) -> Result<DehydratedDeviceData, <__D as Deserializer<'de>>::Error>where
    __D: Deserializer<'de>,
 
fn deserialize<__D>(
    __deserializer: __D,
) -> Result<DehydratedDeviceData, <__D as Deserializer<'de>>::Error>where
    __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for DehydratedDeviceData
 
impl Serialize for DehydratedDeviceData
Source§fn serialize<__S>(
    &self,
    __serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
    __S: Serializer,
 
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 Freeze for DehydratedDeviceData
impl RefUnwindSafe for DehydratedDeviceData
impl Send for DehydratedDeviceData
impl Sync for DehydratedDeviceData
impl Unpin for DehydratedDeviceData
impl UnwindSafe for DehydratedDeviceData
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more