pub struct StoredKey {
pub did: String,
pub label: String,
pub key_type: KeyType,
pub private_key: String,
pub public_key: String,
pub metadata: HashMap<String, String>,
}Expand description
A structure representing a stored key
Fields§
§did: StringThe DID for this key
label: StringHuman-friendly label for this key
key_type: KeyTypeThe key type (e.g., Ed25519, P256)
private_key: StringBase64-encoded private key
public_key: StringBase64-encoded public key
metadata: HashMap<String, String>Optional metadata for this key
Trait Implementations§
Source§impl<'de> Deserialize<'de> for StoredKey
impl<'de> Deserialize<'de> for StoredKey
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 StoredKey
impl RefUnwindSafe for StoredKey
impl Send for StoredKey
impl Sync for StoredKey
impl Unpin for StoredKey
impl UnsafeUnpin for StoredKey
impl UnwindSafe for StoredKey
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