Struct melib::conf::AccountSettings
source · pub struct AccountSettings {
pub name: String,
pub root_mailbox: String,
pub format: String,
pub identity: String,
pub extra_identities: Vec<String>,
pub read_only: bool,
pub display_name: Option<String>,
pub order: (SortField, SortOrder),
pub subscribed_mailboxes: Vec<String>,
pub mailboxes: HashMap<String, MailboxConf>,
pub manual_refresh: bool,
pub extra: HashMap<String, String>,
}
Fields§
§name: String
§root_mailbox: String
Name of mailbox that is the root of the mailbox hierarchy.
Note that this may have special or no meaning depending on the e-mail backend.
format: String
§identity: String
§extra_identities: Vec<String>
§read_only: bool
§display_name: Option<String>
§order: (SortField, SortOrder)
§subscribed_mailboxes: Vec<String>
§mailboxes: HashMap<String, MailboxConf>
§manual_refresh: bool
§extra: HashMap<String, String>
Implementations§
source§impl AccountSettings
impl AccountSettings
sourcepub fn make_display_name(&self) -> Address
👎Deprecated since 0.8.5: Use AcountSettings::main_identity_address instead.
pub fn make_display_name(&self) -> Address
Create the account’s display name from fields
AccountSettings::identity
and AccountSettings::display_name
.
sourcepub fn main_identity_address(&self) -> Address
pub fn main_identity_address(&self) -> Address
Return address associated with this account.
It combines the values from AccountSettings::identity
and
AccountSettings::display_name
.
sourcepub fn extra_identity_addresses(&self) -> Vec<Address>
pub fn extra_identity_addresses(&self) -> Vec<Address>
Return addresses of extra identites associated with this account, if any.
pub fn order(&self) -> Option<(SortField, SortOrder)>
pub fn vcard_folder(&self) -> Option<&str>
sourcepub fn server_password(&self) -> Result<String>
pub fn server_password(&self) -> Result<String>
Get the server password, either directly from the server_password
settings value, or by running the server_password_command
and reading
the output.
pub fn validate_config(&mut self) -> Result<()>
Trait Implementations§
source§impl Clone for AccountSettings
impl Clone for AccountSettings
source§fn clone(&self) -> AccountSettings
fn clone(&self) -> AccountSettings
Returns a copy of the value. Read more
1.0.0 · 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 AccountSettings
impl Debug for AccountSettings
source§impl Default for AccountSettings
impl Default for AccountSettings
source§fn default() -> AccountSettings
fn default() -> AccountSettings
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AccountSettings
impl RefUnwindSafe for AccountSettings
impl Send for AccountSettings
impl Sync for AccountSettings
impl Unpin for AccountSettings
impl UnwindSafe for AccountSettings
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