jwt::algorithm::store

Trait Store

Source
pub trait Store {
    type Algorithm: ?Sized;

    // Required method
    fn get(&self, key_id: &str) -> Option<&Self::Algorithm>;
}
Expand description

A store of keys that can be retrieved by key id.

Required Associated Types§

Required Methods§

Source

fn get(&self, key_id: &str) -> Option<&Self::Algorithm>

Implementations on Foreign Types§

Source§

impl<K, A> Store for BTreeMap<K, A>
where K: Borrow<str> + Ord,

Source§

type Algorithm = A

Source§

fn get(&self, key_id: &str) -> Option<&A>

Source§

impl<K, A> Store for HashMap<K, A>
where K: Borrow<str> + Ord + Hash,

Source§

type Algorithm = A

Source§

fn get(&self, key_id: &str) -> Option<&A>

Implementors§