[][src]Struct melib::backends::jmap::objects::email::import::ImportCall

pub struct ImportCall {
    pub account_id: Id<Account>,
    pub if_in_state: Option<State<EmailObject>>,
    pub emails: HashMap<Id<EmailObject>, EmailImport>,
}

#import

Objects of type Foo are imported via a call to Foo/import.

It takes the following arguments:

Fields

account_id: Id<Account>

accountId: "Id" The id of the account to use.

if_in_state: Option<State<EmailObject>>

ifInState: "String|null" This is a state string as returned by the "Email/get" method. If supplied, the string must match the current state of the account referenced by the accountId; otherwise, the method will be aborted and a "stateMismatch" error returned. If null, any changes will be applied to the current state.

emails: HashMap<Id<EmailObject>, EmailImport>

o emails: "IdEmailImport" A map of creation id (client specified) to EmailImport objects.

Implementations

impl ImportCall[src]

pub fn new() -> Self[src]

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

  • accountId: "Id"

    The id of the account to use.

pub fn if_in_state(self, new_val: Option<State<EmailObject>>) -> Self[src]

pub fn emails(self, new_val: HashMap<Id<EmailObject>, EmailImport>) -> Self[src]

Trait Implementations

impl Debug for ImportCall[src]

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

impl Method<EmailObject> for ImportCall[src]

impl Serialize for ImportCall[src]

Auto Trait Implementations

impl RefUnwindSafe for ImportCall

impl Send for ImportCall

impl Sync for ImportCall

impl Unpin for ImportCall

impl UnwindSafe for ImportCall

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]