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

pub struct ImportResponse {
    pub account_id: Id<Account>,
    pub old_state: Option<State<EmailObject>>,
    pub new_state: Option<State<EmailObject>>,
    pub created: HashMap<Id<EmailObject>, ImportEmailResult>,
    pub not_created: HashMap<Id<EmailObject>, ImportError>,
}

Fields

account_id: Id<Account>

o accountId: "Id" The id of the account used for this call.

old_state: Option<State<EmailObject>>

o oldState: "String|null" The state string that would have been returned by "Email/get" on this account before making the requested changes, or null if the server doesn't know what the previous state string was.

new_state: Option<State<EmailObject>>

o newState: "String" The state string that will now be returned by "Email/get" on this account.

created: HashMap<Id<EmailObject>, ImportEmailResult>

o created: "Id[Email]|null" A map of the creation id to an object containing the "id", "blobId", "threadId", and "size" properties for each successfully imported Email, or null if none.

not_created: HashMap<Id<EmailObject>, ImportError>

o notCreated: "IdSetError|null" A map of the creation id to a SetError object for each Email that failed to be created, or null if all successful. The possible errors are defined above.

Trait Implementations

impl Debug for ImportResponse[src]

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

impl Serialize for ImportResponse[src]

impl<'_> TryFrom<&'_ RawValue> for ImportResponse[src]

type Error = MeliError

The type returned in the event of a conversion error.

Auto Trait Implementations

impl RefUnwindSafe for ImportResponse

impl Send for ImportResponse

impl Sync for ImportResponse

impl Unpin for ImportResponse

impl UnwindSafe for ImportResponse

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]