[][src]Struct melib::backends::jmap::objects::EmailImport

pub struct EmailImport {
    pub blob_id: Id<BlobObject>,
    pub mailbox_ids: HashMap<Id<MailboxObject>, bool>,
    pub keywords: HashMap<String, bool>,
    pub received_at: Option<String>,
}

Fields

blob_id: Id<BlobObject>

o blobId: "Id" The id of the blob containing the raw message [RFC5322].

mailbox_ids: HashMap<Id<MailboxObject>, bool>

o mailboxIds: "Id[Boolean]" The ids of the Mailboxes to assign this Email to. At least one Mailbox MUST be given.

keywords: HashMap<String, bool>

o keywords: "String[Boolean]" (default: {}) The keywords to apply to the Email.

received_at: Option<String>

o receivedAt: "UTCDate" (default: time of most recent Received header, or time of import on server if none) The "receivedAt" date to set on the Email.

Implementations

impl EmailImport[src]

pub fn new() -> Self[src]

pub fn blob_id(self, new_val: Id<BlobObject>) -> Self[src]

pub fn mailbox_ids(self, new_val: HashMap<Id<MailboxObject>, bool>) -> Self[src]

pub fn keywords(self, new_val: HashMap<String, bool>) -> Self[src]

pub fn received_at(self, new_val: Option<String>) -> Self[src]

Trait Implementations

impl Debug for EmailImport[src]

impl<'de> Deserialize<'de> for EmailImport[src]

impl Serialize for EmailImport[src]

Auto Trait Implementations

impl RefUnwindSafe for EmailImport

impl Send for EmailImport

impl Sync for EmailImport

impl Unpin for EmailImport

impl UnwindSafe for EmailImport

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]