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