pub struct GmailSettings {
pub default_account: Option<String>,
pub accounts: HashMap<String, GmailAccountSettings>,
}Expand description
The gmail section of settings.json — named Gmail accounts, selected
per invocation via --account / OMNI_DEV_GMAIL_ACCOUNT
(issue #1500, ADR-0066).
An absent gmail block (or an empty accounts map) leaves Gmail
credential resolution on today’s exact legacy path — see
crate::gmail::account::resolve_account.
Fields§
§default_account: Option<String>The account gmail account list/credential resolution falls back to
when --account/OMNI_DEV_GMAIL_ACCOUNT is unset and more than one
account is configured.
accounts: HashMap<String, GmailAccountSettings>Named accounts, keyed by the name passed to --account.
Trait Implementations§
Source§impl Debug for GmailSettings
impl Debug for GmailSettings
Source§impl Default for GmailSettings
impl Default for GmailSettings
Source§fn default() -> GmailSettings
fn default() -> GmailSettings
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GmailSettings
impl<'de> Deserialize<'de> for GmailSettings
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 GmailSettings
impl RefUnwindSafe for GmailSettings
impl Send for GmailSettings
impl Sync for GmailSettings
impl Unpin for GmailSettings
impl UnsafeUnpin for GmailSettings
impl UnwindSafe for GmailSettings
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