pub struct StoredKey {
pub alg: String,
pub pub_key: Vec<u8>,
pub prv_key: Vec<u8>,
pub tag: Option<String>,
}Expand description
A stored key entry with algorithm, public, and private key material.
Fields§
§alg: StringAlgorithm identifier (ES256, ES384, ES512, Ed25519).
pub_key: Vec<u8>Public key bytes (base64url encoded in JSON).
prv_key: Vec<u8>Private key bytes (base64url encoded in JSON).
tag: Option<String>Optional human-readable tag.
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