Struct jwt::header::Header [−][src]
pub struct Header {
pub algorithm: AlgorithmType,
pub key_id: Option<String>,
pub type_: Option<HeaderType>,
pub content_type: Option<HeaderContentType>,
}
Expand description
Generic JWT header with defined fields for common fields.
Fields
algorithm: AlgorithmType
key_id: Option<String>
type_: Option<HeaderType>
content_type: Option<HeaderContentType>
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more