pub struct IndicesPutTemplate<'a, 'b, B> { /* private fields */ }
Expand description
Builder for the Indices Put Template API
Creates or updates an index template.
Implementations§
Source§impl<'a, 'b, B> IndicesPutTemplate<'a, 'b, B>where
B: Body,
impl<'a, 'b, B> IndicesPutTemplate<'a, 'b, B>where
B: Body,
Sourcepub fn new(transport: &'a Transport, parts: IndicesPutTemplateParts<'b>) -> Self
pub fn new(transport: &'a Transport, parts: IndicesPutTemplateParts<'b>) -> Self
Creates a new instance of IndicesPutTemplate with the specified API parts
Sourcepub fn body<T>(self, body: T) -> IndicesPutTemplate<'a, 'b, JsonBody<T>>where
T: Serialize,
pub fn body<T>(self, body: T) -> IndicesPutTemplate<'a, 'b, JsonBody<T>>where
T: Serialize,
The body for the API call
Sourcepub fn create(self, create: bool) -> Self
pub fn create(self, create: bool) -> Self
Whether the index template should only be added if new or can also replace an existing one
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 include_type_name(self, include_type_name: bool) -> Self
pub fn include_type_name(self, include_type_name: bool) -> Self
Whether a type should be returned in the body of the mappings.
Sourcepub fn master_timeout(self, master_timeout: &'b str) -> Self
pub fn master_timeout(self, master_timeout: &'b str) -> Self
Specify timeout for connection to master
Sourcepub fn order(self, order: i64) -> Self
pub fn order(self, order: i64) -> Self
The order for this template when merging multiple matching ones (higher numbers are merged later, overriding the lower numbers)
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 IndicesPutTemplate<'a, 'b, B>
impl<'a, 'b, B: Clone> Clone for IndicesPutTemplate<'a, 'b, B>
Source§fn clone(&self) -> IndicesPutTemplate<'a, 'b, B>
fn clone(&self) -> IndicesPutTemplate<'a, 'b, B>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more