pub struct JmapResponse {
pub method_responses: Vec<(String, Value, String)>,
pub created_ids: Option<BTreeMap<String, String>>,
pub session_state: String,
}Expand description
The JMAP Response object (RFC 8620 §3.4).
Fields§
§method_responses: Vec<(String, Value, String)>Method responses in (methodName, result, callId) format.
If a method failed, methodName is "error" and result is a
crate::rfc8620::error::JmapMethodError object.
created_ids: Option<BTreeMap<String, String>>Server-assigned IDs for objects created by this request.
session_state: StringThe current state of the session after this request.
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
Source§impl<'de> Deserialize<'de> for JmapResponse
impl<'de> Deserialize<'de> for JmapResponse
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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