pub struct JmapResponse {
pub method_responses: Vec<(String, Value, String)>,
pub session_state: String,
}Expand description
Wire shape of the response envelope (RFC 8620 §3.4).
Fields§
§method_responses: Vec<(String, Value, String)>(name, response, call_id) for each method call, in the same order as
the request. name is "error" for method-level failures.
session_state: StringOpaque state token used by clients to detect server-side state changes
(RFC 8620 §3.2). This crate emits "0" — callers that track real
state should overwrite the value before returning to the client.
Trait Implementations§
Source§impl Clone for JmapResponse
impl Clone for JmapResponse
Source§fn clone(&self) -> JmapResponse
fn clone(&self) -> JmapResponse
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 JmapResponse
impl Debug for JmapResponse
Auto Trait Implementations§
impl Freeze for JmapResponse
impl RefUnwindSafe for JmapResponse
impl Send for JmapResponse
impl Sync for JmapResponse
impl Unpin for JmapResponse
impl UnsafeUnpin for JmapResponse
impl UnwindSafe for JmapResponse
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