#[non_exhaustive]pub struct JmapRequest {
pub using: Vec<String>,
pub method_calls: Vec<Invocation>,
pub created_ids: Option<HashMap<Id, Id>>,
pub extra: Map<String, Value>,
}Expand description
JMAP request envelope (RFC 8620 §3.3).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.using: Vec<String>Capability URIs this request uses, e.g. ["urn:ietf:params:jmap:core"].
method_calls: Vec<Invocation>Ordered list of method invocations.
created_ids: Option<HashMap<Id, Id>>Client-supplied creation ID map (optional, RFC 8620 §3.3).
extra: Map<String, Value>Catch-all for vendor / site / private extension fields not covered by the typed fields above. Preserves unknown fields across deserialize/serialize round-trip per workspace extras-preservation policy (see workspace AGENTS.md).
Implementations§
Source§impl JmapRequest
impl JmapRequest
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
Source§impl PartialEq for JmapRequest
impl PartialEq for JmapRequest
Source§fn eq(&self, other: &JmapRequest) -> bool
fn eq(&self, other: &JmapRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for JmapRequest
impl Serialize for JmapRequest
impl StructuralPartialEq for JmapRequest
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