Struct jmap_client::mailbox::Mailbox
source · [−]pub struct Mailbox<State = Get> { /* private fields */ }Implementations
sourceimpl Mailbox<Get>
impl Mailbox<Get>
pub fn id(&self) -> Option<&str>
pub fn take_id(&mut self) -> String
pub fn name(&self) -> Option<&str>
pub fn parent_id(&self) -> Option<&str>
pub fn role(&self) -> Role
pub fn sort_order(&self) -> u32
pub fn total_emails(&self) -> usize
pub fn unread_emails(&self) -> usize
pub fn total_threads(&self) -> usize
pub fn unread_threads(&self) -> usize
pub fn is_subscribed(&self) -> bool
pub fn my_rights(&self) -> Option<&MailboxRights>
pub fn acl(&self) -> Option<&AHashMap<String, Vec<ACL>>>
pub fn take_acl(&mut self) -> Option<AHashMap<String, Vec<ACL>>>
sourceimpl Mailbox<Set>
impl Mailbox<Set>
pub fn name(&mut self, name: impl Into<String>) -> &mut Self
pub fn parent_id(&mut self, parent_id: Option<impl Into<String>>) -> &mut Self
pub fn parent_id_ref(&mut self, parent_id_ref: &str) -> &mut Self
pub fn role(&mut self, role: Role) -> &mut Self
pub fn sort_order(&mut self, sort_order: u32) -> &mut Self
pub fn is_subscribed(&mut self, is_subscribed: bool) -> &mut Self
pub fn acls<T, U, V>(&mut self, acls: T) -> &mut Selfwhere
T: IntoIterator<Item = (U, V)>,
U: Into<String>,
V: IntoIterator<Item = ACL>,
pub fn acl(&mut self, id: &str, acl: impl IntoIterator<Item = ACL>) -> &mut Self
pub fn acl_set(&mut self, id: &str, acl: ACL, set: bool) -> &mut Self
Trait Implementations
sourceimpl ChangesObject for Mailbox<Get>
impl ChangesObject for Mailbox<Get>
type ChangesResponse = ChangesResponse
sourceimpl ChangesObject for Mailbox<Set>
impl ChangesObject for Mailbox<Set>
type ChangesResponse = ChangesResponse
sourceimpl<'de, State> Deserialize<'de> for Mailbox<State>
impl<'de, State> Deserialize<'de> for Mailbox<State>
sourcefn 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
sourceimpl QueryObject for Mailbox<Set>
impl QueryObject for Mailbox<Set>
Auto Trait Implementations
impl<State> RefUnwindSafe for Mailbox<State>where
State: RefUnwindSafe,
impl<State> Send for Mailbox<State>where
State: Send,
impl<State> Sync for Mailbox<State>where
State: Sync,
impl<State> Unpin for Mailbox<State>where
State: Unpin,
impl<State> UnwindSafe for Mailbox<State>where
State: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more