pub struct ExportedIdentity {
pub version: u8,
pub key: ExportedKeyData,
pub profile: UserProfile,
pub exported_at: DateTime<Utc>,
}Expand description
Portable JSON bundle that carries a complete BillPouch identity.
Produced by Identity::export_to_file; consumed by
Identity::import_from_file. Safe to store on USB, email, etc. —
the encrypted variant requires the original passphrase to use, and the
plaintext variant should be treated like a private key file.
Fields§
§version: u8Format version — currently 1.
key: ExportedKeyDataThe keypair (plaintext or encrypted).
profile: UserProfileUser profile (alias, fingerprint, creation timestamp).
exported_at: DateTime<Utc>UTC timestamp when this bundle was created.
Trait Implementations§
Source§impl Debug for ExportedIdentity
impl Debug for ExportedIdentity
Source§impl<'de> Deserialize<'de> for ExportedIdentity
impl<'de> Deserialize<'de> for ExportedIdentity
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 ExportedIdentity
impl RefUnwindSafe for ExportedIdentity
impl Send for ExportedIdentity
impl Sync for ExportedIdentity
impl Unpin for ExportedIdentity
impl UnwindSafe for ExportedIdentity
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
§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 more