Struct libimagmail::mail::Mail
source · pub struct Mail<'a>(_, _);
Implementations§
source§impl<'a> Mail<'a>
impl<'a> Mail<'a>
sourcepub fn import_from_path<P: AsRef<Path>>(store: &Store, p: P) -> Result<Mail<'_>>
pub fn import_from_path<P: AsRef<Path>>(store: &Store, p: P) -> Result<Mail<'_>>
Imports a mail from the Path passed
sourcepub fn open<S: AsRef<str>>(store: &Store, hash: S) -> Result<Option<Mail<'_>>>
pub fn open<S: AsRef<str>>(store: &Store, hash: S) -> Result<Option<Mail<'_>>>
Opens a mail by the passed hash
sourcepub fn from_fle(fle: FileLockEntry<'a>) -> Result<Mail<'a>>
pub fn from_fle(fle: FileLockEntry<'a>) -> Result<Mail<'a>>
Implement me as TryFrom as soon as it is stable