Skip to main content

Crate ibridge_core

Crate ibridge_core 

Source
Expand description

Domain newtypes, provider traits and the core error type.

Structs§

AppleId
A primary iCloud address (@icloud.com, @me.com or @mac.com).
Attachment
A fetched attachment.
AttachmentInfo
An attachment listed on a message.
Calendar
A calendar collection.
Contact
One contact.
ContactDraft
Fields written by create and update.
ContactList
Contacts from a search, with a count of cards that were skipped.
ContactQuery
A contact search.
ContactUpdate
Changes to a contact. A field left as None stays as the card has it.
Draft
A draft or a message to send.
ETag
An HTTP ETag for a conditional DAV write.
Event
One event, or one expanded occurrence of a recurring event.
EventDraft
Fields written by create and update.
EventList
Events from a query, with a count of items that were skipped.
EventQuery
A time range over one or more calendars.
FlagChange
Flags to set or clear. None leaves a flag unchanged.
GroupRef
A group a contact is in.
LabeledValue
An email address or phone number with the label the card gives it.
MailPage
A page of search hits.
MailSearch
A search over one mailbox or role.
Mailbox
One mailbox and its counts.
MailboxPath
An IMAP mailbox path, stored as Unicode (not modified UTF-7).
Message
A fetched message.
MessageId
A mail id: mailbox path, UIDVALIDITY and UID.
MessageSummary
One hit from MailProvider::search.
Reminder
One reminder.
ReminderDraft
Fields written by create and update. An update replaces all of them, so a None removes the property.
ReminderList
A reminders list.
ReminderPage
Reminders from a query, with a count of items that were skipped.
ResourcePath
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).
UnsubscribeMail
A mailto unsubscribe target from List-Unsubscribe, already checked.

Enums§

CompletedFilter
Whether completed reminders are included.
CoreError
Failure from a mail, calendar, reminders or contacts provider.
GroupChange
Add or remove a contact in an existing group.
IdError
An opaque id could not be decoded.
MailboxRole
Which well-known mailbox a path plays, when the server says.
OneClickFailure
Why a one-click unsubscribe POST failed. Never carries server text.
ParseError
A domain value failed validation.
UnsubscribeMethod
One way to unsubscribe.
UpdateScope
Which part of a recurring event an update changes.

Constants§

UPGRADED_LISTS_NOTE
Shown with the reminder lists: iCloud’s CalDAV does not expose lists the Reminders app has upgraded, so they are missing from the result.

Traits§

CalendarProvider
Calendar read and write operations.
ContactsProvider
Contacts read and write operations.
MailProvider
Mail read and write operations.
RemindersProvider
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 MessageId as an opaque token.
encode_resource
Encodes a DAV ResourcePath as an opaque token. Same framing as encode, with its own kind byte so a message token never decodes as a path.