Struct elastic_responses::parsing::MaybeOkResponse [] [src]

pub struct MaybeOkResponse<B> where
    B: ResponseBody
{ /* fields omitted */ }

A response that might be successful or an ApiError.

Methods

impl<B> MaybeOkResponse<B> where
    B: ResponseBody
[src]

[src]

Create a new response that indicates where or not the body is successful or an ApiError.

[src]

Create a response where the body is successful.

[src]

Create a resposne where the body is an error.

Trait Implementations

Auto Trait Implementations

impl<B> Send for MaybeOkResponse<B> where
    B: Send,
    <B as ResponseBody>::Buffered: Send

impl<B> Sync for MaybeOkResponse<B> where
    B: Sync,
    <B as ResponseBody>::Buffered: Sync