pub struct BackupKey {
pub pubkey: String,
pub key_type: String,
pub name: String,
pub created_at: i64,
pub last_used: Option<i64>,
pub sign_count: u64,
pub secret: String,
}Expand description
A key entry in a backup file.
Fields§
§pubkey: StringHex-encoded public key.
key_type: StringKey type string (e.g. “Nostr”, “Bitcoin”).
name: StringHuman-readable name.
created_at: i64Unix timestamp when the key was created.
last_used: Option<i64>Unix timestamp when the key was last used.
sign_count: u64Number of signatures produced.
secret: StringHex-encoded secret key bytes.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for BackupKey
impl<'de> Deserialize<'de> for BackupKey
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 Forget for BackupKey
impl Freeze for BackupKey
impl Move for BackupKey
impl RefUnwindSafe for BackupKey
impl Send for BackupKey
impl Sync for BackupKey
impl Unpin for BackupKey
impl UnsafeUnpin for BackupKey
impl UnwindSafe for BackupKey
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