pub struct Bearer<L: Lifetime> { /* private fields */ }
Expand description
The bearer token type.
See RFC 6750.
Trait Implementations§
Source§impl<'de, L> Deserialize<'de> for Bearer<L>where
L: Deserialize<'de> + Lifetime,
impl<'de, L> Deserialize<'de> for Bearer<L>where
L: Deserialize<'de> + Lifetime,
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<L: Lifetime> FromResponse for Bearer<L>
impl<L: Lifetime> FromResponse for Bearer<L>
Source§fn from_response(json: &Value) -> Result<Self, ParseError>
fn from_response(json: &Value) -> Result<Self, ParseError>
Parse a JSON response.
Source§fn from_response_inherit(json: &Value, prev: &Self) -> Result<Self, ParseError>
fn from_response_inherit(json: &Value, prev: &Self) -> Result<Self, ParseError>
Parse a JSON response, inheriting missing values from the previous instance. Read more
Source§impl<L: Lifetime> Token<L> for Bearer<L>
impl<L: Lifetime> Token<L> for Bearer<L>
impl<L: Eq + Lifetime> Eq for Bearer<L>
impl<L: Lifetime> StructuralPartialEq for Bearer<L>
Auto Trait Implementations§
impl<L> Freeze for Bearer<L>where
L: Freeze,
impl<L> RefUnwindSafe for Bearer<L>where
L: RefUnwindSafe,
impl<L> Send for Bearer<L>where
L: Send,
impl<L> Sync for Bearer<L>where
L: Sync,
impl<L> Unpin for Bearer<L>where
L: Unpin,
impl<L> UnwindSafe for Bearer<L>where
L: UnwindSafe,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.