[][src]Struct libimagmail::config::MailConfig

pub struct MailConfig { /* fields omitted */ }

A struct representing a full mail configuration, required for working with this library

For convenience reasons, this implements Serialize and Deserialize, so it can be fetched from a configuration file for example

TODO

Figure out how to use handlebars with variables on this. Right now the support for that is not implemented yet.

Methods

impl MailConfig[src]

pub fn default_account(&self) -> &String[src]

pub fn accounts(&self) -> &Vec<MailAccountConfig>[src]

pub fn account(&self, name: &str) -> Option<&MailAccountConfig>[src]

pub fn fetchcommand(&self) -> &MailCommand[src]

pub fn postfetchcommand(&self) -> Option<&MailCommand>[src]

pub fn sendcommand(&self) -> &MailCommand[src]

pub fn postsendcommand(&self) -> Option<&MailCommand>[src]

pub fn fetchcommand_for_account(&self, account_name: &str) -> &MailCommand[src]

pub fn postfetchcommand_for_account(
    &self,
    account_name: &str
) -> Option<&MailCommand>
[src]

pub fn sendcommand_for_account(&self, account_name: &str) -> &MailCommand[src]

pub fn postsendcommand_for_account(
    &self,
    account_name: &str
) -> Option<&MailCommand>
[src]

Trait Implementations

impl Debug for MailConfig[src]

impl<'de> Deserialize<'de> for MailConfig[src]

impl Serialize for MailConfig[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,