Struct elasticsearch::snapshot::SnapshotGet
source · pub struct SnapshotGet<'a, 'b> { /* private fields */ }
Expand description
Builder for the Snapshot Get API
Returns information about a snapshot.
Implementations
sourceimpl<'a, 'b> SnapshotGet<'a, 'b>
impl<'a, 'b> SnapshotGet<'a, 'b>
sourcepub fn new(transport: &'a Transport, parts: SnapshotGetParts<'b>) -> Self
pub fn new(transport: &'a Transport, parts: SnapshotGetParts<'b>) -> Self
Creates a new instance of SnapshotGet with the specified API parts
sourcepub fn after(self, after: &'b str) -> Self
pub fn after(self, after: &'b str) -> Self
Offset identifier to start pagination from as returned by the ‘next’ field in the response body.
sourcepub fn error_trace(self, error_trace: bool) -> Self
pub fn error_trace(self, error_trace: bool) -> Self
Include the stack trace of returned errors.
sourcepub fn filter_path(self, filter_path: &'b [&'b str]) -> Self
pub fn filter_path(self, filter_path: &'b [&'b str]) -> Self
A comma-separated list of filters used to reduce the response.
sourcepub fn from_sort_value(self, from_sort_value: &'b str) -> Self
pub fn from_sort_value(self, from_sort_value: &'b str) -> Self
Value of the current sort column at which to start retrieval.
sourcepub fn header(self, key: HeaderName, value: HeaderValue) -> Self
pub fn header(self, key: HeaderName, value: HeaderValue) -> Self
Adds a HTTP header
Whether to ignore unavailable snapshots, defaults to false which means a SnapshotMissingException is thrown
sourcepub fn include_repository(self, include_repository: bool) -> Self
pub fn include_repository(self, include_repository: bool) -> Self
Whether to include the repository name in the snapshot info. Defaults to true.
sourcepub fn index_details(self, index_details: bool) -> Self
pub fn index_details(self, index_details: bool) -> Self
Whether to include details of each index in the snapshot, if those details are available. Defaults to false.
sourcepub fn index_names(self, index_names: bool) -> Self
pub fn index_names(self, index_names: bool) -> Self
Whether to include the name of each index in the snapshot. Defaults to true.
sourcepub fn master_timeout(self, master_timeout: &'b str) -> Self
pub fn master_timeout(self, master_timeout: &'b str) -> Self
Explicit operation timeout for connection to master node
sourcepub fn offset(self, offset: &'b str) -> Self
pub fn offset(self, offset: &'b str) -> Self
Numeric offset to start pagination based on the snapshots matching the request. Defaults to 0
sourcepub fn request_timeout(self, timeout: Duration) -> Self
pub fn request_timeout(self, timeout: Duration) -> Self
Sets a request timeout for this API call.
The timeout is applied from when the request starts connecting until the response body has finished.
sourcepub fn size(self, size: &'b str) -> Self
pub fn size(self, size: &'b str) -> Self
Maximum number of snapshots to return. Defaults to 0 which means return all that match without limit.
sourcepub fn slm_policy_filter(self, slm_policy_filter: &'b str) -> Self
pub fn slm_policy_filter(self, slm_policy_filter: &'b str) -> Self
Filter snapshots by a comma-separated list of SLM policy names that snapshots belong to. Accepts wildcards. Use the special pattern ‘_none’ to match snapshots without an SLM policy
sourcepub fn sort(self, sort: Sort) -> Self
pub fn sort(self, sort: Sort) -> Self
Allows setting a sort order for the result. Defaults to start_time
sourcepub fn source(self, source: &'b str) -> Self
pub fn source(self, source: &'b str) -> Self
The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests.
Trait Implementations
sourceimpl<'a, 'b> Clone for SnapshotGet<'a, 'b>
impl<'a, 'b> Clone for SnapshotGet<'a, 'b>
sourcefn clone(&self) -> SnapshotGet<'a, 'b>
fn clone(&self) -> SnapshotGet<'a, 'b>
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more