pub struct ClientAuthToken {
pub token: String,
pub client_id: ClientId,
/* private fields */
}
Expand description
Represents an authorization token header for requests
Fields§
§token: String
§client_id: ClientId
Implementations§
Source§impl ClientAuthToken
impl ClientAuthToken
Sourcepub fn from_client<C>(auth_response: ClientAuthResponse, client_id: C) -> Self
pub fn from_client<C>(auth_response: ClientAuthResponse, client_id: C) -> Self
Create the auth token from a sucessful auth response and a client_id
Trait Implementations§
Source§impl AuthToken for ClientAuthToken
impl AuthToken for ClientAuthToken
Source§impl Clone for ClientAuthToken
impl Clone for ClientAuthToken
Source§fn clone(&self) -> ClientAuthToken
fn clone(&self) -> ClientAuthToken
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 moreSource§impl Debug for ClientAuthToken
impl Debug for ClientAuthToken
Source§impl Headers for ClientAuthToken
impl Headers for ClientAuthToken
Source§fn write_headers(&self, req: RequestBuilder) -> RequestBuilder
fn write_headers(&self, req: RequestBuilder) -> RequestBuilder
Write headers to request builder and return request builder
Auto Trait Implementations§
impl Freeze for ClientAuthToken
impl RefUnwindSafe for ClientAuthToken
impl Send for ClientAuthToken
impl Sync for ClientAuthToken
impl Unpin for ClientAuthToken
impl UnwindSafe for ClientAuthToken
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