Expand description
Domain newtypes, provider traits and the core error type.
Structs§
- AppleId
- A primary iCloud address (
@icloud.com,@me.comor@mac.com). - Attachment
- A fetched attachment.
- Attachment
Info - An attachment listed on a message.
- Calendar
- A calendar collection.
- Contact
- One contact.
- Contact
Draft - Fields written by create and update.
- Contact
List - Contacts from a search, with a count of cards that were skipped.
- Contact
Query - A contact search.
- Contact
Update - Changes to a contact. A field left as
Nonestays as the card has it. - Draft
- A draft or a message to send.
- ETag
- An HTTP
ETagfor a conditional DAV write. - Event
- One event, or one expanded occurrence of a recurring event.
- Event
Draft - Fields written by create and update.
- Event
List - Events from a query, with a count of items that were skipped.
- Event
Query - A time range over one or more calendars.
- Flag
Change - Flags to set or clear.
Noneleaves a flag unchanged. - Group
Ref - A group a contact is in.
- Labeled
Value - An email address or phone number with the label the card gives it.
- Mail
Page - A page of search hits.
- Mail
Search - A search over one mailbox or role.
- Mailbox
- One mailbox and its counts.
- Mailbox
Path - An IMAP mailbox path, stored as Unicode (not modified UTF-7).
- Message
- A fetched message.
- Message
Id - A mail id: mailbox path,
UIDVALIDITYandUID. - Message
Summary - One hit from
MailProvider::search. - Reminder
- One reminder.
- Reminder
Draft - Fields written by create and update. An update replaces all of them, so a
Noneremoves the property. - Reminder
List - A reminders list.
- Reminder
Page - Reminders from a query, with a count of items that were skipped.
- Resource
Path - A DAV resource path relative to the account’s discovered collection.
- Uid
- An IMAP UID. Zero is never a valid UID.
- UidValidity
- An IMAP UIDVALIDITY. Zero is never valid.
- Unsubscribe
- How a sender lets a reader unsubscribe (RFC 2369, RFC 8058).
- Unsubscribe
Mail - A mailto unsubscribe target from
List-Unsubscribe, already checked.
Enums§
- Completed
Filter - Whether completed reminders are included.
- Core
Error - Failure from a mail, calendar, reminders or contacts provider.
- Group
Change - Add or remove a contact in an existing group.
- IdError
- An opaque id could not be decoded.
- Mailbox
Role - Which well-known mailbox a path plays, when the server says.
- OneClick
Failure - Why a one-click unsubscribe POST failed. Never carries server text.
- Parse
Error - A domain value failed validation.
- Unsubscribe
Method - One way to unsubscribe.
- Update
Scope - Which part of a recurring event an update changes.
Constants§
- UPGRADED_
LISTS_ NOTE - Shown with the reminder lists: iCloud’s
CalDAVdoes not expose lists the Reminders app has upgraded, so they are missing from the result.
Traits§
- Calendar
Provider - Calendar read and write operations.
- Contacts
Provider - Contacts read and write operations.
- Mail
Provider - Mail read and write operations.
- Reminders
Provider - Reminders read and write operations.
Functions§
- decode
- Decodes a token produced by
encode. - decode_
resource - Decodes a token produced by
encode_resource. - encode
- Encodes a
MessageIdas an opaque token. - encode_
resource - Encodes a DAV
ResourcePathas an opaque token. Same framing asencode, with its own kind byte so a message token never decodes as a path.