Struct matrix_sdk_crypto::olm::PickledAccount [−][src]
pub struct PickledAccount {
pub user_id: UserId,
pub device_id: DeviceIdBox,
pub pickle: AccountPickle,
pub shared: bool,
pub uploaded_signed_key_count: u64,
}Expand description
A pickled version of an Account.
Holds all the information that needs to be stored in a database to restore an account.
Fields
user_id: UserIdThe user id of the account owner.
device_id: DeviceIdBoxThe device id of the account owner.
pickle: AccountPickleThe pickled version of the Olm account.
Was the account shared.
uploaded_signed_key_count: u64The number of uploaded one-time keys we have on the server.
Trait Implementations
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 PickledAccount
impl Send for PickledAccount
impl Sync for PickledAccount
impl Unpin for PickledAccount
impl UnwindSafe for PickledAccount
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more