Struct elastic_requests::endpoints::SnapshotCreateRepositoryRequest
[−]
[src]
pub struct SnapshotCreateRepositoryRequest<'a, B> { pub url: Url<'a>, pub body: B, }
Post: /_snapshot/{repository}
Fields
url: Url<'a>
body: B
Methods
impl<'a, B> SnapshotCreateRepositoryRequest<'a, B>
[src]
fn for_repository<IRepository>(repository: IRepository, body: B) -> Self where
IRepository: Into<Repository<'a>>,
[src]
IRepository: Into<Repository<'a>>,
Request to: /_snapshot/{repository}
Trait Implementations
impl<'a, B: Debug> Debug for SnapshotCreateRepositoryRequest<'a, B>
[src]
impl<'a, B: PartialEq> PartialEq for SnapshotCreateRepositoryRequest<'a, B>
[src]
fn eq(&self, __arg_0: &SnapshotCreateRepositoryRequest<'a, B>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &SnapshotCreateRepositoryRequest<'a, B>) -> bool
[src]
This method tests for !=
.
impl<'a, B: Clone> Clone for SnapshotCreateRepositoryRequest<'a, B>
[src]
fn clone(&self) -> SnapshotCreateRepositoryRequest<'a, B>
[src]
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> Into<HttpRequest<'a, B>> for SnapshotCreateRepositoryRequest<'a, B>
[src]
fn into(self) -> HttpRequest<'a, B>
[src]
Performs the conversion.