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> Clone for HttpRequest<'a, B> where
B: Clone,
B: Clone,
fn clone(&self) -> HttpRequest<'a, B>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
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,