[−][src]Struct libimagmail::config::MailConfig
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]
&self,
account_name: &str
) -> Option<&MailCommand>
pub fn sendcommand_for_account(&self, account_name: &str) -> &MailCommand
[src]
pub fn postsendcommand_for_account(
&self,
account_name: &str
) -> Option<&MailCommand>
[src]
&self,
account_name: &str
) -> Option<&MailCommand>
Trait Implementations
impl Debug for MailConfig
[src]
impl<'de> Deserialize<'de> for MailConfig
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for MailConfig
[src]
Auto Trait Implementations
impl RefUnwindSafe for MailConfig
impl Send for MailConfig
impl Sync for MailConfig
impl Unpin for MailConfig
impl UnwindSafe for MailConfig
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,