pub struct JwtHeader { /* private fields */ }Expand description
JWT JWS header decoded from the first segment of a compact token.
Implementations§
Source§impl JwtHeader
impl JwtHeader
pub fn get_alg(&self) -> &String
pub fn get_mut_alg(&mut self) -> &mut String
pub fn set_alg(&mut self, val: String) -> &mut Self
pub fn get_typ(&self) -> Option<String>
pub fn try_get_typ(&self) -> Option<String>
pub fn get_mut_typ(&mut self) -> &mut Option<String>
pub fn set_typ(&mut self, val: Option<String>) -> &mut Self
pub fn get_kid(&self) -> Option<String>
pub fn try_get_kid(&self) -> Option<String>
pub fn get_mut_kid(&mut self) -> &mut Option<String>
pub fn set_kid(&mut self, val: Option<String>) -> &mut Self
Trait Implementations§
Source§impl<'de> Deserialize<'de> for JwtHeader
impl<'de> Deserialize<'de> for JwtHeader
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 JwtHeader
impl StructuralPartialEq for JwtHeader
Auto Trait Implementations§
impl Forget for JwtHeader
impl Freeze for JwtHeader
impl Move for JwtHeader
impl RefUnwindSafe for JwtHeader
impl Send for JwtHeaderwhere
RawVecInner: Send,
impl Sync for JwtHeaderwhere
RawVecInner: Sync,
impl Unpin for JwtHeader
impl UnsafeUnpin for JwtHeader
impl UnwindSafe for JwtHeaderwhere
RawVecInner: UnwindSafe,
Blanket Implementations§
impl<T> AnySend for T
impl<T> AnySendClone for T
impl<T> AnySendSync for T
impl<T> AnySendSyncClone for T
impl<T> AnySync for T
impl<T> AnySyncClone for T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.