pub struct Header { /* private fields */ }
Implementations§
Source§impl Header
impl Header
pub fn new(json: Value) -> Header
pub fn get_str(&self, key: &str) -> Option<&str>
pub fn get_i64(&self, key: &str) -> Option<i64>
pub fn get_u64(&self, key: &str) -> Option<u64>
pub fn get_f64(&self, key: &str) -> Option<f64>
pub fn get_bool(&self, key: &str) -> Option<bool>
pub fn get_object(&self, key: &str) -> Option<&Map<String, Value>>
pub fn get_array(&self, key: &str) -> Option<&Vec<Value>>
pub fn get_null(&self, key: &str) -> Option<()>
pub fn into<T>(&self) -> Result<T, Error>where
T: DeserializeOwned,
pub fn alg(&self) -> Option<&str>
pub fn enc(&self) -> Option<&str>
pub fn zip(&self) -> Option<&str>
pub fn jku(&self) -> Option<&str>
pub fn jkw(&self) -> Option<&str>
pub fn kid(&self) -> Option<&str>
pub fn x5u(&self) -> Option<&str>
pub fn x5c(&self) -> Option<&str>
pub fn x5t(&self) -> Option<&str>
pub fn typ(&self) -> Option<&str>
pub fn cty(&self) -> Option<&str>
pub fn crit(&self) -> Option<&str>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Header
impl<'de> Deserialize<'de> for Header
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Header, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Header, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for Header
impl Serialize for Header
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more