pub struct Auth {
pub client_id: String,
pub secret: String,
pub access_token: Option<AccessToken>,
pub expires: Option<(Instant, Duration)>,
}
Expand description
Stores OAuth2 information.
Fields§
§client_id: String
Your client id.
secret: String
The secret.
access_token: Option<AccessToken>
The access token returned by oauth2 authentication.
expires: Option<(Instant, Duration)>
Used to check when the token expires.
Trait Implementations§
Source§impl Ord for Auth
impl Ord for Auth
Source§impl PartialOrd for Auth
impl PartialOrd for Auth
impl Eq for Auth
impl StructuralPartialEq for Auth
Auto Trait Implementations§
impl Freeze for Auth
impl RefUnwindSafe for Auth
impl Send for Auth
impl Sync for Auth
impl Unpin for Auth
impl UnwindSafe for Auth
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