#[non_exhaustive]pub struct WsRequestError {
pub request_id: Option<String>,
pub problem_type: String,
pub status: Option<u16>,
pub detail: Option<String>,
pub limit: Option<String>,
pub extra: Map<String, Value>,
}Expand description
A request-level error received over WebSocket (RFC 8887 §4.3.4).
An RFC 8620 §3.6.1 Problem Details object extended with
"@type": "RequestError" and requestId. The server sends one instead
of a Response when the whole request is rejected (not JSON, unknown
capability, limit exceeded, …).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.request_id: Option<String>requestId: the id of the request this error answers. None when
the server sent null or omitted it.
problem_type: StringProblem Details type URI, e.g.
"urn:ietf:params:jmap:error:notJSON" (RFC 8620 §3.6.1).
status: Option<u16>Problem Details status: the HTTP status code the error would carry
over HTTP.
detail: Option<String>Problem Details detail: human-readable explanation.
limit: Option<String>limit: the name of the exceeded limit, present for
urn:ietf:params:jmap:error:limit (RFC 8620 §3.6.1).
extra: Map<String, Value>Remaining fields (@type, title, vendor extensions), preserved per
the workspace extras-preservation policy.