Skip to content

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).

The request it answers.

The command name.

The ok body exactly as received, or the error.

pub fn decode<B>(&self) -> Result<<B as >::Response, Option<ErrorBody>>

Decodes a successful body as B’s response type.

Err(Some(error)) for an error response, Err(None) for a body that is not a B response.

Clone, Debug

Full rustdoc page