pub struct Mailbox {
pub user: String,
pub mailbox_root: String,
/* private fields */
}
Fields§
§user: String
§mailbox_root: String
Implementations§
Source§impl Mailbox
impl Mailbox
pub async fn new(user: String, password: String) -> Option<Self>
pub async fn load(user: String) -> Option<Self>
pub async fn load_all() -> Option<Vec<Self>>
pub async fn check_password_plain(&self, password: String) -> Result<(), ()>
pub async fn get_lsub(&self, args: Vec<&str>) -> Option<Vec<String>>
pub async fn get_list(&self, args: Vec<&str>) -> Option<Vec<String>>
pub async fn check_mailbox_root(&self) -> Result<(), Error>
pub async fn check_mailbox_folder<P>(&self, path_part: P) -> Result<(), Error>
pub async fn create_folder<P>(&self, path: P) -> Result<(), Error>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Mailbox
impl RefUnwindSafe for Mailbox
impl Send for Mailbox
impl Sync for Mailbox
impl Unpin for Mailbox
impl UnwindSafe for Mailbox
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoSql for T
impl<T> IntoSql for T
Source§fn into_sql<T>(self) -> Self::Expressionwhere
Self: Sized + AsExpression<T>,
fn into_sql<T>(self) -> Self::Expressionwhere
Self: Sized + AsExpression<T>,
Convert
self
to an expression for Diesel’s query builder. Read moreSource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
Convert
&self
to an expression for Diesel’s query builder. Read more