#[non_exhaustive]pub struct DehydratedDeviceV2 {
    pub device_pickle: String,
    pub nonce: String,
}Available on crate feature 
api and (crate features client-api-c or client-api-s) only.Expand description
The org.matrix.msc3814.v2 variant of a dehydrated device.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional 
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.device_pickle: StringThe pickle of the Olm account of the device.
The pickle will contain the private parts of the long-term identity keys of the device as well as a collection of one-time keys.
nonce: StringThe nonce used to encrypt the pickle.
Implementations§
Source§impl DehydratedDeviceV2
 
impl DehydratedDeviceV2
Sourcepub fn new(device_pickle: String, nonce: String) -> DehydratedDeviceV2
 
pub fn new(device_pickle: String, nonce: String) -> DehydratedDeviceV2
Create a DehydratedDeviceV2 struct from a device pickle.
Trait Implementations§
Source§impl Clone for DehydratedDeviceV2
 
impl Clone for DehydratedDeviceV2
Source§fn clone(&self) -> DehydratedDeviceV2
 
fn clone(&self) -> DehydratedDeviceV2
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 moreAuto Trait Implementations§
impl Freeze for DehydratedDeviceV2
impl RefUnwindSafe for DehydratedDeviceV2
impl Send for DehydratedDeviceV2
impl Sync for DehydratedDeviceV2
impl Unpin for DehydratedDeviceV2
impl UnwindSafe for DehydratedDeviceV2
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