pub struct GmailCredentials {
pub client_id: String,
pub client_secret: Secret,
pub refresh_token: Secret,
pub scope: GmailScope,
}Expand description
Gmail OAuth2 credentials.
Fields§
§client_id: StringOAuth2 client id (not secret — visible in the browser’s own network traffic during login regardless).
client_secret: SecretOAuth2 client secret (redacted in Debug output).
refresh_token: SecretThe stored refresh token (redacted in Debug output).
scope: GmailScopeThe scope granted at the login that produced this refresh token.
Trait Implementations§
Source§impl Clone for GmailCredentials
impl Clone for GmailCredentials
Source§fn clone(&self) -> GmailCredentials
fn clone(&self) -> GmailCredentials
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 GmailCredentials
impl RefUnwindSafe for GmailCredentials
impl Send for GmailCredentials
impl Sync for GmailCredentials
impl Unpin for GmailCredentials
impl UnsafeUnpin for GmailCredentials
impl UnwindSafe for GmailCredentials
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