pub struct TransformDeleteTransform<'a, 'b> { /* private fields */ }
Expand description
Builder for the Transform Delete Transform API
Deletes an existing transform.
Implementations§
Source§impl<'a, 'b> TransformDeleteTransform<'a, 'b>
impl<'a, 'b> TransformDeleteTransform<'a, 'b>
Sourcepub fn new(
transport: &'a Transport,
parts: TransformDeleteTransformParts<'b>,
) -> Self
pub fn new( transport: &'a Transport, parts: TransformDeleteTransformParts<'b>, ) -> Self
Creates a new instance of TransformDeleteTransform with the specified API parts
Sourcepub fn delete_dest_index(self, delete_dest_index: bool) -> Self
pub fn delete_dest_index(self, delete_dest_index: bool) -> Self
When true
, the destination index is deleted together with the transform. The default value is false
, meaning that the destination index will not be deleted.
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 force(self, force: bool) -> Self
pub fn force(self, force: bool) -> Self
When true
, the transform is deleted regardless of its current state. The default value is false
, meaning that the transform must be stopped
before it can be deleted.
Sourcepub fn header(self, key: HeaderName, value: HeaderValue) -> Self
pub fn header(self, key: HeaderName, value: HeaderValue) -> Self
Adds a HTTP header
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 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§
Source§impl<'a, 'b> Clone for TransformDeleteTransform<'a, 'b>
impl<'a, 'b> Clone for TransformDeleteTransform<'a, 'b>
Source§fn clone(&self) -> TransformDeleteTransform<'a, 'b>
fn clone(&self) -> TransformDeleteTransform<'a, 'b>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more