[][src]Struct melib::backends::jmap::rfc8620::SetResponse

pub struct SetResponse<OBJ: Object> {
    pub account_id: Id<Account>,
    pub old_state: State<OBJ>,
    pub new_state: State<OBJ>,
    pub created: Option<HashMap<Id<OBJ>, OBJ>>,
    pub updated: Option<HashMap<Id<OBJ>, Option<OBJ>>>,
    pub destroyed: Option<Vec<Id<OBJ>>>,
    pub not_created: Option<Vec<SetError>>,
    pub not_updated: Option<Vec<SetError>>,
    pub not_destroyed: Option<Vec<SetError>>,
}

Fields

account_id: Id<Account>

o accountId: "Id"

The id of the account used for the call.

old_state: State<OBJ>

o oldState: "String|null"

The state string that would have been returned by "Foo/get" before making the requested changes, or null if the server doesn't know what the previous state string was.

new_state: State<OBJ>

o newState: "String"

The state string that will now be returned by "Foo/get".

created: Option<HashMap<Id<OBJ>, OBJ>>

o created: "Id[Foo]|null"

A map of the creation id to an object containing any properties of the created Foo object that were not sent by the client. This includes all server-set properties (such as the "id" in most object types) and any properties that were omitted by the client and thus set to a default by the server.

This argument is null if no Foo objects were successfully created.

updated: Option<HashMap<Id<OBJ>, Option<OBJ>>>

o updated: "Id[Foo|null]|null"

The keys in this map are the ids of all Foos that were successfully updated.

The value for each id is a Foo object containing any property that changed in a way not explicitly requested by the PatchObject sent to the server, or null if none. This lets the client know of any changes to server-set or computed properties.

This argument is null if no Foo objects were successfully updated.

destroyed: Option<Vec<Id<OBJ>>>

o destroyed: "Id[]|null"

A list of Foo ids for records that were successfully destroyed, or null if none.

not_created: Option<Vec<SetError>>

o notCreated: "IdSetError|null"

A map of the creation id to a SetError object for each record that failed to be created, or null if all successful.

not_updated: Option<Vec<SetError>>

o notUpdated: "IdSetError|null"

A map of the Foo id to a SetError object for each record that failed to be updated, or null if all successful.

not_destroyed: Option<Vec<SetError>>

o notDestroyed: "IdSetError|null"

A map of the Foo id to a SetError object for each record that failed to be destroyed, or null if all successful.//

Trait Implementations

impl<OBJ: Debug + Object> Debug for SetResponse<OBJ>[src]

impl<'de, OBJ: Object> Deserialize<'de> for SetResponse<OBJ> where
    OBJ: Deserialize<'de>, 
[src]

impl<OBJ: Object> Serialize for SetResponse<OBJ> where
    OBJ: Serialize
[src]

impl<OBJ: Object + DeserializeOwned, '_> TryFrom<&'_ RawValue> for SetResponse<OBJ>[src]

type Error = MeliError

The type returned in the event of a conversion error.

Auto Trait Implementations

impl<OBJ> RefUnwindSafe for SetResponse<OBJ> where
    OBJ: RefUnwindSafe

impl<OBJ> Send for SetResponse<OBJ> where
    OBJ: Send

impl<OBJ> Sync for SetResponse<OBJ> where
    OBJ: Sync

impl<OBJ> Unpin for SetResponse<OBJ> where
    OBJ: Unpin

impl<OBJ> UnwindSafe for SetResponse<OBJ> where
    OBJ: UnwindSafe

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]