pub struct DriveSettings {
pub default_account: Option<String>,
pub accounts: HashMap<String, DriveAccountSettings>,
}Expand description
The drive section of settings.json — named Google Drive accounts,
selected per invocation via --account / OMNI_DEV_DRIVE_ACCOUNT
(issue #1520, ADR-0069).
An absent drive block (or an empty accounts map) means Drive is
simply unconfigured — unlike GmailSettings, there is no legacy
credential path to fall back to, Drive being brand new.
Fields§
§default_account: Option<String>The account credential resolution falls back to when
--account/OMNI_DEV_DRIVE_ACCOUNT is unset and more than one
account is configured.
accounts: HashMap<String, DriveAccountSettings>Named accounts, keyed by the name passed to --account.
Trait Implementations§
Source§impl Debug for DriveSettings
impl Debug for DriveSettings
Source§impl Default for DriveSettings
impl Default for DriveSettings
Source§fn default() -> DriveSettings
fn default() -> DriveSettings
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DriveSettings
impl<'de> Deserialize<'de> for DriveSettings
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for DriveSettings
impl RefUnwindSafe for DriveSettings
impl Send for DriveSettings
impl Sync for DriveSettings
impl Unpin for DriveSettings
impl UnsafeUnpin for DriveSettings
impl UnwindSafe for DriveSettings
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