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

Return the value for header claim of a specified key.

Arguments
  • key - a key name of header claim

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Implementors