pub struct ImapAccount {
pub user: Option<String>,
pub host: Option<String>,
pub pass_cmd: Option<String>,
}Fields§
§user: Option<String>§host: Option<String>§pass_cmd: Option<String>Implementations§
Source§impl ImapAccount
impl ImapAccount
Sourcepub fn oauth_profile(&self) -> Option<&str>
pub fn oauth_profile(&self) -> Option<&str>
The OAuth profile behind this account, read out of its PassCmd.
oauthman is still recognised because it is what an existing setup says
until its configuration is regenerated, and losing the mapping would cost
doctor its token checks and a send failure its explanation — in exactly
the window where the user is midway through the switch.
Trait Implementations§
Source§impl Clone for ImapAccount
impl Clone for ImapAccount
Source§fn clone(&self) -> ImapAccount
fn clone(&self) -> ImapAccount
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 moreSource§impl Debug for ImapAccount
impl Debug for ImapAccount
Source§impl Default for ImapAccount
impl Default for ImapAccount
Source§fn default() -> ImapAccount
fn default() -> ImapAccount
Returns the “default value” for a type. Read more
impl Eq for ImapAccount
Source§impl PartialEq for ImapAccount
impl PartialEq for ImapAccount
impl StructuralPartialEq for ImapAccount
Auto Trait Implementations§
impl Freeze for ImapAccount
impl RefUnwindSafe for ImapAccount
impl Send for ImapAccount
impl Sync for ImapAccount
impl Unpin for ImapAccount
impl UnsafeUnpin for ImapAccount
impl UnwindSafe for ImapAccount
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