pub struct PutComponentTemplateRequestBodyJson {
pub version: Option<u32>,
pub meta: Option<Metadata>,
pub allow_auto_create: Option<bool>,
pub template: IndexState,
}Expand description
PutComponentTemplateRequestBodyJson The template definition.
Fields§
§version: Option<u32>§meta: Option<Metadata>§allow_auto_create: Option<bool>This setting overrides the action.auto_create_index cluster setting.
When set to true in a component template, indexes are automatically created using that
template. When set to false, data streams matching the component template must always be explicitly created.
template: IndexStateImplementations§
Source§impl PutComponentTemplateRequestBodyJson
impl PutComponentTemplateRequestBodyJson
Sourcepub fn new(template: IndexState) -> PutComponentTemplateRequestBodyJson
pub fn new(template: IndexState) -> PutComponentTemplateRequestBodyJson
The template definition.
Trait Implementations§
Source§impl Clone for PutComponentTemplateRequestBodyJson
impl Clone for PutComponentTemplateRequestBodyJson
Source§fn clone(&self) -> PutComponentTemplateRequestBodyJson
fn clone(&self) -> PutComponentTemplateRequestBodyJson
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for PutComponentTemplateRequestBodyJson
impl Default for PutComponentTemplateRequestBodyJson
Source§fn default() -> PutComponentTemplateRequestBodyJson
fn default() -> PutComponentTemplateRequestBodyJson
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PutComponentTemplateRequestBodyJson
impl<'de> Deserialize<'de> for PutComponentTemplateRequestBodyJson
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PutComponentTemplateRequestBodyJson
impl RefUnwindSafe for PutComponentTemplateRequestBodyJson
impl Send for PutComponentTemplateRequestBodyJson
impl Sync for PutComponentTemplateRequestBodyJson
impl Unpin for PutComponentTemplateRequestBodyJson
impl UnsafeUnpin for PutComponentTemplateRequestBodyJson
impl UnwindSafe for PutComponentTemplateRequestBodyJson
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