pub struct RestoreCode {
pub v: u8,
pub lid: String,
pub ek: String,
pub name: String,
pub provider: RestoreProvider,
pub sk: String,
}Expand description
Everything needed to restore a library from cloud storage.
Fields§
§v: u8Version (currently 1).
lid: StringLibrary ID (UUID).
ek: StringEncryption key (hex-encoded, 64 chars).
name: StringLibrary display name.
provider: RestoreProviderCloud provider and its connection details.
sk: StringEd25519 signing key, base64url-encoded, 64 bytes. Required.
Trait Implementations§
Source§impl Clone for RestoreCode
impl Clone for RestoreCode
Source§fn clone(&self) -> RestoreCode
fn clone(&self) -> RestoreCode
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 RestoreCode
impl Debug for RestoreCode
Source§impl<'de> Deserialize<'de> for RestoreCode
impl<'de> Deserialize<'de> for RestoreCode
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
Auto Trait Implementations§
impl Freeze for RestoreCode
impl RefUnwindSafe for RestoreCode
impl Send for RestoreCode
impl Sync for RestoreCode
impl Unpin for RestoreCode
impl UnwindSafe for RestoreCode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.