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
url: Url<'a>
method: HttpMethod
body: Option<B>
Trait Implementations
impl<'a, B> PartialEq<HttpRequest<'a, B>> for HttpRequest<'a, B> where
B: PartialEq<B>,
B: PartialEq<B>,
fn eq(&self, __arg_0: &HttpRequest<'a, B>) -> bool
fn ne(&self, __arg_0: &HttpRequest<'a, B>) -> bool
impl<'a, B> Debug for HttpRequest<'a, B> where
B: Debug,
B: Debug,
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter.
impl<'a, B> Clone for HttpRequest<'a, B> where
B: Clone,
B: Clone,