Trait jwt::algorithm::store::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,

§

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,

§

type Algorithm = A

source§

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

Implementors§