pub struct JmapIdentitySetArgs {
pub create: BTreeMap<String, JmapIdentityCreate>,
pub update: BTreeMap<String, JmapIdentityUpdate>,
pub destroy: Vec<String>,
}Expand description
Arguments for an Identity/set request.
Fields§
§create: BTreeMap<String, JmapIdentityCreate>The identities to create, keyed by client id.
update: BTreeMap<String, JmapIdentityUpdate>The patches to apply, keyed by identity id.
destroy: Vec<String>The ids of the objects to destroy.
Implementations§
Source§impl JmapIdentitySetArgs
impl JmapIdentitySetArgs
Sourcepub fn create(
&mut self,
client_id: impl Into<String>,
identity: JmapIdentityCreate,
) -> &mut Self
pub fn create( &mut self, client_id: impl Into<String>, identity: JmapIdentityCreate, ) -> &mut Self
Queues an object to create under the given client id.
Sourcepub fn update(
&mut self,
id: impl Into<String>,
patch: JmapIdentityUpdate,
) -> &mut Self
pub fn update( &mut self, id: impl Into<String>, patch: JmapIdentityUpdate, ) -> &mut Self
Queues a patch for the identity with the given id.
Trait Implementations§
Source§impl Clone for JmapIdentitySetArgs
impl Clone for JmapIdentitySetArgs
Source§fn clone(&self) -> JmapIdentitySetArgs
fn clone(&self) -> JmapIdentitySetArgs
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for JmapIdentitySetArgs
impl Debug for JmapIdentitySetArgs
Source§impl Default for JmapIdentitySetArgs
impl Default for JmapIdentitySetArgs
Source§fn default() -> JmapIdentitySetArgs
fn default() -> JmapIdentitySetArgs
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for JmapIdentitySetArgs
impl RefUnwindSafe for JmapIdentitySetArgs
impl Send for JmapIdentitySetArgs
impl Sync for JmapIdentitySetArgs
impl Unpin for JmapIdentitySetArgs
impl UnsafeUnpin for JmapIdentitySetArgs
impl UnwindSafe for JmapIdentitySetArgs
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more