Skip to main content

backend_set_error_value

Function backend_set_error_value 

Source
pub fn backend_set_error_value<E: Display>(err: BackendSetError<E>) -> Value
Expand description

The notCreated / notUpdated / notDestroyed map value for a backend /set failure (RFC 8620 §5.3).

BackendSetError::SetError serializes verbatim; BackendSetError::Other becomes a serverFail with the fixed SERVER_FAIL_INTERNAL_DESC description, so the inner error’s Display text never reaches the wire (bd:JMAP-jfia.36). Every *-server crate maps per-object backend errors through this one function.