pub struct KeyRecord {
pub key_id: String,
pub derivation_path: String,
pub key_type: KeyType,
pub status: KeyStatus,
pub public_key: String,
pub label: Option<String>,
pub context_id: Option<String>,
pub seed_id: Option<u32>,
pub origin: KeyOrigin,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
}Expand description
One key as the maintainer holds it — canonical
keys/_shared/0.1/key-record#KeyRecord.
The wire names are canonical camelCase; the Rust field names are the maintainer’s historical snake_case ones, kept so every call site did not have to move in the same change. Snake_case is additionally accepted on intake via aliases, so a producer written against the pre-fold shape keeps working while it migrates — emission is canonical either way.
Fields§
§key_id: String§derivation_path: String§key_type: KeyType§status: KeyStatus§public_key: String§label: Option<String>§context_id: Option<String>§seed_id: Option<u32>§origin: KeyOrigin§created_at: DateTime<Utc>§updated_at: DateTime<Utc>Trait Implementations§
Source§impl<'de> Deserialize<'de> for KeyRecord
impl<'de> Deserialize<'de> for KeyRecord
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 KeyRecord
impl RefUnwindSafe for KeyRecord
impl Send for KeyRecord
impl Sync for KeyRecord
impl Unpin for KeyRecord
impl UnsafeUnpin for KeyRecord
impl UnwindSafe for KeyRecord
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