pub enum DriveAuthStrategy {
ServiceAccount {
key_path: String,
},
LinkedAccount {
connection_id: i64,
pool: DbPool,
connector_key: Vec<u8>,
connector: GoogleDriveConnector,
},
}Expand description
How the provider obtains access tokens for Drive API calls.
Variants§
ServiceAccount
Legacy: service-account JSON key file.
LinkedAccount
New: linked-account credentials from connections table.
Auto Trait Implementations§
impl Freeze for DriveAuthStrategy
impl !RefUnwindSafe for DriveAuthStrategy
impl Send for DriveAuthStrategy
impl Sync for DriveAuthStrategy
impl Unpin for DriveAuthStrategy
impl UnsafeUnpin for DriveAuthStrategy
impl !UnwindSafe for DriveAuthStrategy
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more