pub struct Ap2Keyring { /* private fields */ }Expand description
A registry of trusted Ed25519 verifying keys, keyed by key_id. A mandate
signed by a key_id absent here is denied (Ap2DenyKind::UnknownKey).
Implementations§
Source§impl Ap2Keyring
impl Ap2Keyring
Sourcepub fn new() -> Self
pub fn new() -> Self
An empty keyring — every mandate is denied for an unknown key until one is registered (deny-by-default).
Sourcepub fn insert_key(&mut self, key_id: impl Into<String>, key: VerifyingKey)
pub fn insert_key(&mut self, key_id: impl Into<String>, key: VerifyingKey)
Register a verifying key from its 32 raw bytes.
Trait Implementations§
Source§impl Clone for Ap2Keyring
impl Clone for Ap2Keyring
Source§fn clone(&self) -> Ap2Keyring
fn clone(&self) -> Ap2Keyring
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Ap2Keyring
impl Debug for Ap2Keyring
Source§impl Default for Ap2Keyring
impl Default for Ap2Keyring
Source§fn default() -> Ap2Keyring
fn default() -> Ap2Keyring
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for Ap2Keyring
impl RefUnwindSafe for Ap2Keyring
impl Send for Ap2Keyring
impl Sync for Ap2Keyring
impl Unpin for Ap2Keyring
impl UnsafeUnpin for Ap2Keyring
impl UnwindSafe for Ap2Keyring
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