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§
source§impl<'de> Deserialize<'de> for Header
impl<'de> Deserialize<'de> for Header
source§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
source§impl JoseHeader for Header
impl JoseHeader for Header
fn algorithm_type(&self) -> AlgorithmType
fn key_id(&self) -> Option<&str>
fn type_(&self) -> Option<HeaderType>
fn content_type(&self) -> Option<HeaderContentType>
impl StructuralPartialEq for Header
Auto Trait Implementations§
impl Freeze for Header
impl RefUnwindSafe for Header
impl Send for Header
impl Sync for Header
impl Unpin for Header
impl UnwindSafe for Header
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more