pub struct JmapSetOptions<C: Serialize, U: Serialize> {
pub if_in_state: Option<String>,
pub create: Option<BTreeMap<String, C>>,
pub update: Option<BTreeMap<String, U>>,
pub destroy: Option<Vec<String>>,
}Expand description
Options for JmapSet::new.
Fields§
§if_in_state: Option<String>Optimistic concurrency token: matched against the server’s current
state; mismatch aborts the call with stateMismatch.
create: Option<BTreeMap<String, C>>Objects to create (client ID → partial object).
update: Option<BTreeMap<String, U>>Objects to update (id → patch).
destroy: Option<Vec<String>>Object IDs to destroy.
Trait Implementations§
Source§impl<C: Clone + Serialize, U: Clone + Serialize> Clone for JmapSetOptions<C, U>
impl<C: Clone + Serialize, U: Clone + Serialize> Clone for JmapSetOptions<C, U>
Source§fn clone(&self) -> JmapSetOptions<C, U>
fn clone(&self) -> JmapSetOptions<C, U>
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 moreAuto Trait Implementations§
impl<C, U> Freeze for JmapSetOptions<C, U>
impl<C, U> RefUnwindSafe for JmapSetOptions<C, U>where
C: RefUnwindSafe,
U: RefUnwindSafe,
impl<C, U> Send for JmapSetOptions<C, U>
impl<C, U> Sync for JmapSetOptions<C, U>
impl<C, U> Unpin for JmapSetOptions<C, U>
impl<C, U> UnsafeUnpin for JmapSetOptions<C, U>
impl<C, U> UnwindSafe for JmapSetOptions<C, U>where
C: RefUnwindSafe,
U: RefUnwindSafe,
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