pub trait Endpoint: DynClone {
    type RenderRequestError: Error + Send + Sync + 'static;
    type ParseResponseOutput;
    type ParseResponseError: Error + Send + Sync + 'static;

    // Required methods
    fn render_request(&self) -> Result<Request<Body>, Self::RenderRequestError>;
    fn parse_response(
        &self,
        response: Response<Body>
    ) -> Result<Self::ParseResponseOutput, Self::ParseResponseError>;
}

Required Associated Types§

Required Methods§

Trait Implementations§

source§

impl<'clone, RenderRequestError, ParseResponseOutput, ParseResponseError> Clone for Box<dyn Endpoint<RenderRequestError = RenderRequestError, ParseResponseOutput = ParseResponseOutput, ParseResponseError = ParseResponseError> + 'clone>

source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'clone, RenderRequestError, ParseResponseOutput, ParseResponseError> Clone for Box<dyn Endpoint<RenderRequestError = RenderRequestError, ParseResponseOutput = ParseResponseOutput, ParseResponseError = ParseResponseError> + Send + 'clone>

source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'clone, RenderRequestError, ParseResponseOutput, ParseResponseError> Clone for Box<dyn Endpoint<RenderRequestError = RenderRequestError, ParseResponseOutput = ParseResponseOutput, ParseResponseError = ParseResponseError> + Send + Sync + 'clone>

source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'clone, RenderRequestError, ParseResponseOutput, ParseResponseError> Clone for Box<dyn Endpoint<RenderRequestError = RenderRequestError, ParseResponseOutput = ParseResponseOutput, ParseResponseError = ParseResponseError> + Sync + 'clone>

source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<RenderRequestError, ParseResponseOutput, ParseResponseError> Debug for dyn Endpoint<RenderRequestError = RenderRequestError, ParseResponseOutput = ParseResponseOutput, ParseResponseError = ParseResponseError>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<RenderRequestError, ParseResponseOutput, ParseResponseError> Debug for dyn Endpoint<RenderRequestError = RenderRequestError, ParseResponseOutput = ParseResponseOutput, ParseResponseError = ParseResponseError> + Send + Sync

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Implementors§