Struct client::Response
zaun_community_protocol::client::Response · Struct
pub struct Response { … }A final response. Debug hides the body, which may embed a secret (an invitation link).
Fields
Section titled “Fields”request_id: RequestId
Section titled “request_id: RequestId”The request it answers.
kind: &'static str
Section titled “kind: &'static str”The command name.
result: Result<Box<RawValue>, ErrorBody>
Section titled “result: Result<Box<RawValue>, ErrorBody>”The ok body exactly as received, or the error.
Methods
Section titled “Methods”decode
Section titled “decode”pub fn decode<B>(&self) -> Result<<B as >::Response, Option<ErrorBody>>Decodes a successful body as B’s response type.
Errors
Section titled “Errors”Err(Some(error)) for an error response, Err(None) for a body that is not a B
response.
Trait implementations
Section titled “Trait implementations”Clone, Debug