pub struct DriveCredentials {
pub client_id: String,
pub client_secret: Secret,
pub refresh_token: Secret,
pub scope: DriveScope,
}Expand description
Drive 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: DriveScopeThe scope granted at the login that produced this refresh token.
Trait Implementations§
Source§impl Clone for DriveCredentials
impl Clone for DriveCredentials
Source§fn clone(&self) -> DriveCredentials
fn clone(&self) -> DriveCredentials
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 DriveCredentials
impl RefUnwindSafe for DriveCredentials
impl Send for DriveCredentials
impl Sync for DriveCredentials
impl Unpin for DriveCredentials
impl UnsafeUnpin for DriveCredentials
impl UnwindSafe for DriveCredentials
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