pub struct KeyInfo {
pub label: String,
pub key_type: KeyType,
pub access_policy: Option<AccessPolicy>,
pub public_key: Vec<u8>,
}Expand description
Public projection of key metadata. Does not expose serde_json::Value.
Fields§
§label: StringThe key’s label as passed to generate_key().
key_type: KeyTypeWhether this is a signing or encryption key.
access_policy: Option<AccessPolicy>The key’s access policy, if determinable. None when metadata is unavailable.
None means the policy was not available (e.g., metadata read failed or
the backend does not expose policy metadata via list_keys()). Callers
must check for None and not assume a default policy.
public_key: Vec<u8>Uncompressed SEC1 P-256 public key: 0x04 || X (32 bytes) || Y (32 bytes).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for KeyInfo
impl RefUnwindSafe for KeyInfo
impl Send for KeyInfo
impl Sync for KeyInfo
impl Unpin for KeyInfo
impl UnsafeUnpin for KeyInfo
impl UnwindSafe for KeyInfo
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