pub struct JmapRequest {
pub using: Vec<String>,
pub method_calls: Vec<(String, Value, String)>,
}Expand description
Wire shape of an inbound JMAP request (RFC 8620 §3.4).
method_calls is [(name, args, call_id)] per the spec. using lists
capability URIs the client claims to need; we accept any.
Fields§
§using: Vec<String>Capability URIs the client declares it needs (e.g. JMAP_MAIL_CAP).
Defaults to an empty list when the wire form omits the field; the
dispatcher does not enforce capability gating.
method_calls: Vec<(String, Value, String)>Ordered list of method invocations (name, args, call_id). Back-
references between calls (RFC 8620 §3.7) are resolved in order, so a
later call may reference an earlier call’s result.
Trait Implementations§
Source§impl Clone for JmapRequest
impl Clone for JmapRequest
Source§fn clone(&self) -> JmapRequest
fn clone(&self) -> JmapRequest
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 JmapRequest
impl Debug for JmapRequest
Source§impl<'de> Deserialize<'de> for JmapRequest
impl<'de> Deserialize<'de> for JmapRequest
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 JmapRequest
impl RefUnwindSafe for JmapRequest
impl Send for JmapRequest
impl Sync for JmapRequest
impl Unpin for JmapRequest
impl UnsafeUnpin for JmapRequest
impl UnwindSafe for JmapRequest
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