#[non_exhaustive]pub struct WsRequest {
pub id: Option<String>,
pub request: JmapRequest,
}Expand description
A JMAP Request sent over the WebSocket (RFC 8887 §4.3.2): an RFC 8620
§3.3 Request plus @type: "Request" and an optional client id.
Unknown members land in the inner JmapRequest::extra.
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.id: Option<String>id: “A client-specified identifier for the request to be echoed
back in the response to this request.”
request: JmapRequestThe RFC 8620 Request (using, methodCalls, createdIds).
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for WsRequest
impl<'de> Deserialize<'de> for WsRequest
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for WsRequest
Auto Trait Implementations§
impl Forget for WsRequest
impl Freeze for WsRequest
impl Move for WsRequest
impl RefUnwindSafe for WsRequest
impl Send for WsRequest
impl Sync for WsRequest
impl Unpin for WsRequest
impl UnsafeUnpin for WsRequest
impl UnwindSafe for WsRequest
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