pub struct DanglingIndicesImportDanglingIndex<'a, 'b, B> { /* private fields */ }Expand description
Builder for the Dangling Indices Import Dangling Index API
Imports the specified dangling index
Implementations§
Source§impl<'a, 'b, B> DanglingIndicesImportDanglingIndex<'a, 'b, B>where
B: Body,
impl<'a, 'b, B> DanglingIndicesImportDanglingIndex<'a, 'b, B>where
B: Body,
Sourcepub fn new(
transport: &'a Transport,
parts: DanglingIndicesImportDanglingIndexParts<'b>,
) -> Self
pub fn new( transport: &'a Transport, parts: DanglingIndicesImportDanglingIndexParts<'b>, ) -> Self
Creates a new instance of DanglingIndicesImportDanglingIndex with the specified API parts
Sourcepub fn accept_data_loss(self, accept_data_loss: bool) -> Self
pub fn accept_data_loss(self, accept_data_loss: bool) -> Self
Must be set to true in order to import the dangling index
Sourcepub fn body<T>(
self,
body: T,
) -> DanglingIndicesImportDanglingIndex<'a, 'b, JsonBody<T>>where
T: Serialize,
pub fn body<T>(
self,
body: T,
) -> DanglingIndicesImportDanglingIndex<'a, 'b, JsonBody<T>>where
T: Serialize,
The body for the API call
Sourcepub fn cluster_manager_timeout(self, cluster_manager_timeout: &'b str) -> Self
pub fn cluster_manager_timeout(self, cluster_manager_timeout: &'b str) -> Self
Specify timeout for connection to cluster-manager node
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 header(self, key: HeaderName, value: HeaderValue) -> Self
pub fn header(self, key: HeaderName, value: HeaderValue) -> Self
Adds a HTTP header
Sourcepub fn master_timeout(self, master_timeout: &'b str) -> Self
👎Deprecated: To promote inclusive language, use ‘cluster_manager_timeout’ instead.
pub fn master_timeout(self, master_timeout: &'b str) -> Self
Specify timeout for connection to cluster-manager node
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.
Trait Implementations§
Source§impl<'a, 'b, B: Clone> Clone for DanglingIndicesImportDanglingIndex<'a, 'b, B>
impl<'a, 'b, B: Clone> Clone for DanglingIndicesImportDanglingIndex<'a, 'b, B>
Source§fn clone(&self) -> DanglingIndicesImportDanglingIndex<'a, 'b, B>
fn clone(&self) -> DanglingIndicesImportDanglingIndex<'a, 'b, B>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'a, 'b, B> Freeze for DanglingIndicesImportDanglingIndex<'a, 'b, B>where
B: Freeze,
impl<'a, 'b, B> !RefUnwindSafe for DanglingIndicesImportDanglingIndex<'a, 'b, B>
impl<'a, 'b, B> Send for DanglingIndicesImportDanglingIndex<'a, 'b, B>where
B: Send,
impl<'a, 'b, B> Sync for DanglingIndicesImportDanglingIndex<'a, 'b, B>where
B: Sync,
impl<'a, 'b, B> Unpin for DanglingIndicesImportDanglingIndex<'a, 'b, B>where
B: Unpin,
impl<'a, 'b, B> !UnwindSafe for DanglingIndicesImportDanglingIndex<'a, 'b, B>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.