pub fn from_map(map: impl Into<Map<String, Value>>) -> Result<Self, JoseError> {
        let map: Map<String, Value> = map.into();
        for (key, value) in &map {
            Self::check_claim(key, value)?;
        }

        Ok(Self { claims: map })
    }
/// Return a new header instance from map.
///
/// # Arguments
///
/// * `map` - The header claims
Return a new header instance from map.
Return a new header instance from map .
pub fn from_map(map: impl Into<Map<String, Value>>) -> Result<Self, JoseError> {
        let map: Map<String, Value> = map.into();
        for (key, value) in &map {
            Self::check_claim(key, value)?;
        }
        Ok(Self { claims: map })
    }
pub fn from_map ( map : impl Into < Map < String , Value > > ) -> Result < Self , JoseError > { let map : Map < String , Value > = map . into ( ) ; for ( key , value ) in & map { Self :: check_claim ( key , value ) ? ; } Ok ( Self { claims : map } ) }
Return a new header instance from map.
Return a new header instance from map .
map
impl Into<Map<String, Value>>
map
impl Into<Map<String, Value>>