Trait Endpoint
Source pub trait Endpoint {
type RenderRequestError: Error + Send + Sync + 'static;
type ParseResponseOutput;
type ParseResponseError: Error + Send + Sync + 'static;
// Required methods
fn render_request(
&self,
) -> Result<Request<Vec<u8>>, Self::RenderRequestError>;
fn parse_response(
&self,
response: Response<Vec<u8>>,
) -> Result<Self::ParseResponseOutput, Self::ParseResponseError>;
}
Formats the value using the given formatter.
Read more
Formats the value using the given formatter.
Read more