pub struct Mailbox {
pub id: String,
pub name: String,
pub total: Option<u64>,
pub unread: Option<u64>,
}Expand description
A mailbox (a.k.a. folder).
Strict least-common-denominator shape: only fields that are first-class in every protocol the crate targets (IMAP, JMAP, Maildir, m2dir, mbox, notmuch). Protocol-specific data (IMAP delimiter and SPECIAL-USE attributes, JMAP role and rights, Maildir path, …) is intentionally absent — for these, use the corresponding protocol-specific crate directly.
Fields§
§id: StringBackend-specific identifier.
JMAP exposes a real opaque ID; for IMAP, Maildir, mbox and
notmuch this is the same as Self::name. Use this when
issuing follow-up commands that refer to the mailbox.
name: StringHuman-readable mailbox name.
total: Option<u64>Total number of messages, when the caller requested counts.
None when the backend was not asked or cannot answer
cheaply.
unread: Option<u64>Number of unread messages, when the caller requested counts.
None when the backend was not asked or cannot answer
cheaply.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Mailbox
impl<'de> Deserialize<'de> for Mailbox
Source§fn 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>,
impl Eq for Mailbox
impl StructuralPartialEq for Mailbox
Auto Trait Implementations§
impl Freeze for Mailbox
impl RefUnwindSafe for Mailbox
impl Send for Mailbox
impl Sync for Mailbox
impl Unpin for Mailbox
impl UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.impl<T> OrderedSeq<'_, T> for Twhere
T: Clone,
Source§impl<'p, T> Seq<'p, T> for Twhere
T: Clone,
impl<'p, T> Seq<'p, T> for Twhere
T: Clone,
Source§impl<T, S> SpanWrap<S> for Twhere
S: WrappingSpan<T>,
impl<T, S> SpanWrap<S> for Twhere
S: WrappingSpan<T>,
Source§fn with_span(self, span: S) -> <S as WrappingSpan<Self>>::Spanned
fn with_span(self, span: S) -> <S as WrappingSpan<Self>>::Spanned
WrappingSpan::make_wrapped to wrap an AST node in a span.