pub struct Bearer {
pub access_token: String,
pub token_type: String,
pub scope: Option<String>,
pub state: Option<String>,
pub refresh_token: Option<String>,
pub expires_in: Option<u64>,
pub id_token: Option<String>,
pub extra: Option<HashMap<String, Value>>,
}
Expand description
The bearer token type.
See RFC 6750.
Fields§
§access_token: String
§token_type: String
§scope: Option<String>
§state: Option<String>
§refresh_token: Option<String>
§expires_in: Option<u64>
§id_token: Option<String>
§extra: Option<HashMap<String, Value>>
Trait Implementations§
source§impl AsRef<Bearer> for TemporalBearerGuard
impl AsRef<Bearer> for TemporalBearerGuard
source§impl<'de> Deserialize<'de> for Bearer
impl<'de> Deserialize<'de> for Bearer
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 From<Bearer> for TemporalBearerGuard
impl From<Bearer> for TemporalBearerGuard
source§impl PartialEq for Bearer
impl PartialEq for Bearer
impl Eq for Bearer
impl StructuralPartialEq for Bearer
Auto Trait Implementations§
impl Freeze for Bearer
impl RefUnwindSafe for Bearer
impl Send for Bearer
impl Sync for Bearer
impl Unpin for Bearer
impl UnwindSafe for Bearer
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<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.