Struct elastic::client::requests::endpoints::PercolateRequest
[−]
pub struct PercolateRequest<'a, B> { pub url: Url<'a>, pub body: B, }
Post: /{index}/{type}/_percolate
Fields
url: Url<'a>
body: B
Methods
impl<'a, B> PercolateRequest<'a, B>
pub fn for_index_ty<IIndex, IType>(
index: IIndex,
ty: IType,
body: B
) -> PercolateRequest<'a, B> where
IIndex: Into<Index<'a>>,
IType: Into<Type<'a>>,
index: IIndex,
ty: IType,
body: B
) -> PercolateRequest<'a, B> where
IIndex: Into<Index<'a>>,
IType: Into<Type<'a>>,
Request to: /{index}/{type}/_percolate
pub fn for_index_ty_id<IIndex, IType, IId>(
index: IIndex,
ty: IType,
id: IId,
body: B
) -> PercolateRequest<'a, B> where
IId: Into<Id<'a>>,
IIndex: Into<Index<'a>>,
IType: Into<Type<'a>>,
index: IIndex,
ty: IType,
id: IId,
body: B
) -> PercolateRequest<'a, B> where
IId: Into<Id<'a>>,
IIndex: Into<Index<'a>>,
IType: Into<Type<'a>>,
Request to: /{index}/{type}/{id}/_percolate
Trait Implementations
impl<'a, B> Into<HttpRequest<'a, B>> for PercolateRequest<'a, B>
fn into(self) -> HttpRequest<'a, B>
Performs the conversion.
impl<'a, B> PartialEq<PercolateRequest<'a, B>> for PercolateRequest<'a, B> where
B: PartialEq<B>,
B: PartialEq<B>,
fn eq(&self, __arg_0: &PercolateRequest<'a, B>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &PercolateRequest<'a, B>) -> bool
This method tests for !=
.
impl<'a, B> Clone for PercolateRequest<'a, B> where
B: Clone,
B: Clone,
fn clone(&self) -> PercolateRequest<'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> Debug for PercolateRequest<'a, B> where
B: Debug,
B: Debug,
Auto Trait Implementations
impl<'a, B> Send for PercolateRequest<'a, B> where
B: Send,
B: Send,
impl<'a, B> Sync for PercolateRequest<'a, B> where
B: Sync,
B: Sync,