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