pub struct AttesterRegistry { /* private fields */ }Implementations§
Source§impl AttesterRegistry
impl AttesterRegistry
pub fn new() -> Self
pub fn insert(&mut self, kid: impl Into<String>, key: VerifyingKey)
pub fn insert_key_bytes( &mut self, kid: impl Into<String>, key_bytes: &[u8], ) -> Result<(), AttestationError>
pub fn get(&self, kid: &str) -> Option<&VerifyingKey>
pub fn is_empty(&self) -> bool
Trait Implementations§
Source§impl Clone for AttesterRegistry
impl Clone for AttesterRegistry
Source§fn clone(&self) -> AttesterRegistry
fn clone(&self) -> AttesterRegistry
Returns a duplicate of the value. Read more
1.0.0 · 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 AttesterRegistry
impl Debug for AttesterRegistry
Source§impl Default for AttesterRegistry
impl Default for AttesterRegistry
Source§fn default() -> AttesterRegistry
fn default() -> AttesterRegistry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AttesterRegistry
impl RefUnwindSafe for AttesterRegistry
impl Send for AttesterRegistry
impl Sync for AttesterRegistry
impl Unpin for AttesterRegistry
impl UnwindSafe for AttesterRegistry
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