Trait josekit::JoseHeader

source ·
pub trait JoseHeader: Send + Sync + Debug {
    fn len(&self) -> usize;
    fn claim(&self, key: &str) -> Option<&Value>;
    fn box_clone(&self) -> Box<dyn JoseHeader>;
}

Required Methods§

source

fn len(&self) -> usize

Return claim count.

source

fn claim(&self, key: &str) -> Option<&Value>

Return the value for header claim of a specified key.

Arguments
  • key - a key name of header claim
source

fn box_clone(&self) -> Box<dyn JoseHeader>

Trait Implementations§

source§

impl Clone for Box<dyn JoseHeader>

source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

Implementors§