pub struct AccountConfig {
pub name: String,
pub host: String,
pub port: u16,
pub username: String,
pub password: PasswordSource,
pub address: Option<String>,
pub aliases: Vec<String>,
pub sync_interval_secs: u64,
pub trash_retention_days: u64,
pub notify: bool,
pub ca_file: Option<PathBuf>,
}Fields§
§name: String§host: String§port: u16§username: String§password: PasswordSource§address: Option<String>§aliases: Vec<String>§sync_interval_secs: u64§trash_retention_days: u64§notify: bool§ca_file: Option<PathBuf>Extra trusted root certificate (PEM), for servers with a private CA.
Implementations§
Source§impl AccountConfig
impl AccountConfig
Sourcepub fn new(
name: &str,
host: &str,
username: &str,
password: PasswordSource,
) -> AccountConfig
pub fn new( name: &str, host: &str, username: &str, password: PasswordSource, ) -> AccountConfig
An account with the defaults config.toml gives the settings it leaves out.
pub fn address(&self) -> &str
pub fn identity(&self) -> Result<Identity, ConfigError>
Trait Implementations§
Source§impl Clone for AccountConfig
impl Clone for AccountConfig
Source§impl Debug for AccountConfig
impl Debug for AccountConfig
Source§impl<'de> Deserialize<'de> for AccountConfig
impl<'de> Deserialize<'de> for AccountConfig
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
Source§impl PartialEq for AccountConfig
impl PartialEq for AccountConfig
Source§impl Serialize for AccountConfig
impl Serialize for AccountConfig
impl StructuralPartialEq for AccountConfig
Auto Trait Implementations§
impl Freeze for AccountConfig
impl RefUnwindSafe for AccountConfig
impl Send for AccountConfig
impl Sync for AccountConfig
impl Unpin for AccountConfig
impl UnsafeUnpin for AccountConfig
impl UnwindSafe for AccountConfig
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