[−][src]Struct jwt::header::Header
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
impl Debug for Header
[src]
impl Default for Header
[src]
impl<'de> Deserialize<'de> for Header
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl JoseHeader for Header
[src]
fn algorithm_type(&self) -> AlgorithmType
[src]
fn key_id(&self) -> Option<&str>
[src]
fn type_(&self) -> Option<HeaderType>
[src]
fn content_type(&self) -> Option<HeaderContentType>
[src]
impl PartialEq<Header> for Header
[src]
impl Serialize for Header
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralPartialEq for Header
[src]
Auto Trait Implementations
impl RefUnwindSafe for Header
impl Send for Header
impl Sync for Header
impl Unpin for Header
impl UnwindSafe for Header
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Component for T where
T: ToBase64 + FromBase64,
[src]
T: ToBase64 + FromBase64,
fn from_base64<Input>(&Input) -> Result<T, Error> where
Input: AsRef<[u8]> + ?Sized,
[src]
Input: AsRef<[u8]> + ?Sized,
Deprecated:
This is usually implemented through a blanket impl, but if needed use the ToBase64 and FromBase64 traits
Parse from a string.
fn to_base64(&Self) -> Result<String, Error>
[src]
Deprecated:
This is usually implemented through a blanket impl, but if needed use the ToBase64 and FromBase64 traits
Encode to a string.
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T> FromBase64 for T where
T: DeserializeOwned,
[src]
T: DeserializeOwned,
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<C> SignWithKey<String> for C where
C: ToBase64,
[src]
C: ToBase64,
fn sign_with_key(Self, &dyn SigningAlgorithm) -> Result<String, Error>
[src]
impl<T> ToBase64 for T where
T: Serialize,
[src]
T: Serialize,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,