pub struct PimdirCollection {
pub id: String,
pub account: Option<String>,
pub kind: String,
pub name: String,
pub parent: Option<String>,
pub color: Option<String>,
pub description: Option<String>,
pub sort_order: Option<i64>,
pub generation: i64,
}client only.Expand description
A collection as seen by a client read (list_collections): its
identity and presentation, kind-agnostic. The sync bindings and
per-source state are not exposed here: a reader observes the shared
truth only.
Fields§
§id: StringThe stable collection id (the mailbox name for a mail store).
account: Option<String>The account this collection is grouped under (spec §9.2), None
in a single-account store. It groups and nothing more: no
identifier is scoped by it.
kind: StringThe declared IANA media type (message/rfc822, text/vcard, …),
or the empty string when a sync created the collection before a
kind was set.
name: StringThe display name.
parent: Option<String>The parent collection id, for a hierarchy.
color: Option<String>A presentation colour hint.
description: Option<String>A free-text description.
sort_order: Option<i64>An explicit sort key; None sorts after the ordered ones.
generation: i64The handle-space epoch (spec §12): starts at 1, bumped by the owner only on a rekey, so a frontend derives epoch-dependent protocol values (an IMAP UIDVALIDITY) from the store alone.
Trait Implementations§
Source§impl Clone for PimdirCollection
impl Clone for PimdirCollection
Source§fn clone(&self) -> PimdirCollection
fn clone(&self) -> PimdirCollection
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more