Struct elastic::client::requests::endpoints::SimpleSearchRequest
[−]
pub struct SimpleSearchRequest<'a> { pub url: Url<'a>, }
Get: /_search
Fields
url: Url<'a>
Methods
impl<'a> SimpleSearchRequest<'a>
pub fn new() -> SimpleSearchRequest<'a>
Request to: /_search
pub fn for_index<IIndex>(index: IIndex) -> SimpleSearchRequest<'a> where
IIndex: Into<Index<'a>>,
IIndex: Into<Index<'a>>,
Request to: /{index}/_search
pub fn for_index_ty<IIndex, IType>(
index: IIndex,
ty: IType
) -> SimpleSearchRequest<'a> where
IIndex: Into<Index<'a>>,
IType: Into<Type<'a>>,
index: IIndex,
ty: IType
) -> SimpleSearchRequest<'a> where
IIndex: Into<Index<'a>>,
IType: Into<Type<'a>>,
Request to: /{index}/{type}/_search
Trait Implementations
impl<'a> Into<HttpRequest<'a, &'static [u8]>> for SimpleSearchRequest<'a>
fn into(self) -> HttpRequest<'a, &'static [u8]>
Performs the conversion.
impl<'a> PartialEq<SimpleSearchRequest<'a>> for SimpleSearchRequest<'a>
fn eq(&self, __arg_0: &SimpleSearchRequest<'a>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &SimpleSearchRequest<'a>) -> bool
This method tests for !=
.
impl<'a> Clone for SimpleSearchRequest<'a>
fn clone(&self) -> SimpleSearchRequest<'a>
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