Struct elastic::client::requests::endpoints::UpdateRequest
[−]
pub struct UpdateRequest<'a, B> { pub url: Url<'a>, pub body: B, }
Post: /{index}/{type}/{id}/_update
Fields
url: Url<'a>
body: B
Methods
impl<'a, B> UpdateRequest<'a, B>
fn for_index_ty_id<IIndex, IType, IId>(
index: IIndex,
ty: IType,
id: IId,
body: B
) -> UpdateRequest<'a, B> where
IId: Into<Id<'a>>,
IIndex: Into<Index<'a>>,
IType: Into<Type<'a>>,
index: IIndex,
ty: IType,
id: IId,
body: B
) -> UpdateRequest<'a, B> where
IId: Into<Id<'a>>,
IIndex: Into<Index<'a>>,
IType: Into<Type<'a>>,
Request to: /{index}/{type}/{id}/_update
Trait Implementations
impl<'a, B> Clone for UpdateRequest<'a, B> where
B: Clone,
B: Clone,
fn clone(&self) -> UpdateRequest<'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<UpdateRequest<'a, B>> for UpdateRequest<'a, B> where
B: PartialEq<B>,
B: PartialEq<B>,
fn eq(&self, __arg_0: &UpdateRequest<'a, B>) -> bool
fn ne(&self, __arg_0: &UpdateRequest<'a, B>) -> bool
impl<'a, B> Debug for UpdateRequest<'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> Into<HttpRequest<'a, B>> for UpdateRequest<'a, B>
fn into(self) -> HttpRequest<'a, B>
Performs the conversion.