Struct elastic::client::requests::HttpRequest []

pub struct HttpRequest<'a, B> {
    pub url: Url<'a>,
    pub method: HttpMethod,
    pub body: Option<B>,
}

A general request type that all endpoints can be converted into.

Fields

Trait Implementations

impl<'a, B> PartialEq<HttpRequest<'a, B>> for HttpRequest<'a, B> where
    B: PartialEq<B>, 

impl<'a, B> Debug for HttpRequest<'a, B> where
    B: Debug

Formats the value using the given formatter.

impl<'a, B> Clone for HttpRequest<'a, B> where
    B: Clone