pub struct BearerToken {
pub access_token: String,
pub token_type: String,
}Expand description
Bearer Token Authentication
Fields§
§access_token: StringOAuth 2.1 access token
token_type: StringToken type (always “Bearer”)
Implementations§
Trait Implementations§
Source§impl Clone for BearerToken
impl Clone for BearerToken
Source§fn clone(&self) -> BearerToken
fn clone(&self) -> BearerToken
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for BearerToken
impl RefUnwindSafe for BearerToken
impl Send for BearerToken
impl Sync for BearerToken
impl Unpin for BearerToken
impl UnsafeUnpin for BearerToken
impl UnwindSafe for BearerToken
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