#[non_exhaustive]pub enum DehydratedDeviceData {
V1(DehydratedDeviceV1),
}
Available on crate feature
api
and (crate features client
or server
) and crate feature unstable-msc3814
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.
Implementations§
§impl DehydratedDeviceData
impl DehydratedDeviceData
pub fn algorithm(&self) -> DeviceDehydrationAlgorithm
pub fn algorithm(&self) -> DeviceDehydrationAlgorithm
Get the algorithm this dehydrated device uses.
Trait Implementations§
§impl Clone for DehydratedDeviceData
impl Clone for DehydratedDeviceData
§fn clone(&self) -> DehydratedDeviceData
fn clone(&self) -> DehydratedDeviceData
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 more§impl Debug for DehydratedDeviceData
impl Debug for DehydratedDeviceData
§impl<'de> Deserialize<'de> for DehydratedDeviceData
impl<'de> Deserialize<'de> for DehydratedDeviceData
§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
§impl Serialize for DehydratedDeviceData
impl Serialize for DehydratedDeviceData
§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
§impl TryFrom<Helper> for DehydratedDeviceData
impl TryFrom<Helper> for DehydratedDeviceData
§fn try_from(
value: Helper
) -> Result<DehydratedDeviceData, <DehydratedDeviceData as TryFrom<Helper>>::Error>
fn try_from( value: Helper ) -> Result<DehydratedDeviceData, <DehydratedDeviceData as TryFrom<Helper>>::Error>
Performs the conversion.
Auto Trait Implementations§
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