pub struct KeyMetadata {
pub key_id: KeyId,
pub algorithm: KeyAlgorithm,
pub label: String,
pub public_key: Option<PublicKeyDer>,
pub check_value: Option<KeyCheckValue>,
pub attestation: Option<Attestation>,
}Expand description
Metadata returned after key generation or import.
Fields§
§key_id: KeyIdOpaque backend-specific key identifier.
algorithm: KeyAlgorithmKey algorithm.
label: StringHuman-readable label.
public_key: Option<PublicKeyDer>Public key, if the backend exports one.
check_value: Option<KeyCheckValue>Key check value, for a symmetric key.
The counterpart of public_key: what the key answers to in the
transcript and in the room. None for an asymmetric key, which is
named by its public half.
attestation: Option<Attestation>Attestation evidence (if backend supports attestation).
Trait Implementations§
Source§impl Clone for KeyMetadata
impl Clone for KeyMetadata
Source§impl Debug for KeyMetadata
impl Debug for KeyMetadata
Source§impl<'de> Deserialize<'de> for KeyMetadata
impl<'de> Deserialize<'de> for KeyMetadata
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 KeyMetadata
impl RefUnwindSafe for KeyMetadata
impl Send for KeyMetadata
impl Sync for KeyMetadata
impl Unpin for KeyMetadata
impl UnsafeUnpin for KeyMetadata
impl UnwindSafe for KeyMetadata
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