pub struct JmapBatch { /* private fields */ }Expand description
Builder for batched JMAP requests: multiple method calls in one HTTP
request, with generated call IDs for JmapResultReference back-refs.
Implementations§
Source§impl JmapBatch
impl JmapBatch
Sourcepub fn add(&mut self, method: impl Into<String>, args: Value) -> String
pub fn add(&mut self, method: impl Into<String>, args: Value) -> String
Adds a method call. Returns the call ID ("c0", "c1", …) for use in
back-references from later calls.
Sourcepub fn into_request(self, using: Vec<String>) -> JmapRequest
pub fn into_request(self, using: Vec<String>) -> JmapRequest
Consumes the batch and returns a JmapRequest.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for JmapBatch
impl RefUnwindSafe for JmapBatch
impl Send for JmapBatch
impl Sync for JmapBatch
impl Unpin for JmapBatch
impl UnsafeUnpin for JmapBatch
impl UnwindSafe for JmapBatch
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