pub struct Header {
pub typ: TokenType,
pub alg: Algorithm,
pub cty: Option<SmallString<3>>,
pub jku: Option<String>,
pub kid: Option<SmallString<36>>,
pub x5u: Option<String>,
pub x5c: Option<Vec<String>>,
pub x5t: Option<SmallString<27>>,
pub x5t_s256: Option<SmallString<43>>,
}Fields§
§typ: TokenTypeThe only valid value is “JWT” https://tools.ietf.org/html/rfc7519#section-5.1
alg: Algorithmttps://tools.ietf.org/html/rfc7515#section-4.1.1
cty: Option<SmallString<3>>Content type https://tools.ietf.org/html/rfc7519#section-5.2
jku: Option<String>JSON Key URL https://tools.ietf.org/html/rfc7515#section-4.1.2
kid: Option<SmallString<36>>JSON Web Key https://tools.ietf.org/html/rfc7515#section-4.1.3 Key ID https://tools.ietf.org/html/rfc7515#section-4.1.4
x5u: Option<String>X.509 URL https://tools.ietf.org/html/rfc7515#section-4.1.5
x5c: Option<Vec<String>>X.509 certificate chain. https://tools.ietf.org/html/rfc7515#section-4.1.6
x5t: Option<SmallString<27>>X.509 SHA1 certificate Thumbprint https://tools.ietf.org/html/rfc7515#section-4.1.7
x5t_s256: Option<SmallString<43>>X.509 SHA256 certificate Thumbprint https://tools.ietf.org/html/rfc7515#section-4.1.8
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
impl Eq for Header
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 UnsafeUnpin 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