Struct envelope::Rejection
zaun_community_protocol::envelope::Rejection · Struct
pub struct Rejection { … }A command the host rejects before dispatch; send Rejection::into_response back.
Fields
Section titled “Fields”request_id: Option<RequestId>
Section titled “request_id: Option<RequestId>”The command’s request_id when it could be read, else None (null).
error: ErrorBody
Section titled “error: ErrorBody”The error to answer with.
Methods
Section titled “Methods”into_response
Section titled “into_response”pub fn into_response(self) -> ResponseEnvelopeThe response envelope to send.
Trait implementations
Section titled “Trait implementations”Clone, Debug