pub struct PutComponentTemplate {
pub allow_auto_create: Option<bool>,
pub template: IndexState,
pub version: Option<u32>,
pub meta: Option<Metadata>,
}Expand description
PutComponentTemplate The template definition.
Fields§
§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: IndexState§version: Option<u32>§meta: Option<Metadata>Implementations§
Source§impl PutComponentTemplate
impl PutComponentTemplate
Sourcepub fn new(template: IndexState) -> PutComponentTemplate
pub fn new(template: IndexState) -> PutComponentTemplate
The template definition.
Trait Implementations§
Source§impl Clone for PutComponentTemplate
impl Clone for PutComponentTemplate
Source§fn clone(&self) -> PutComponentTemplate
fn clone(&self) -> PutComponentTemplate
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 Debug for PutComponentTemplate
impl Debug for PutComponentTemplate
Source§impl Default for PutComponentTemplate
impl Default for PutComponentTemplate
Source§fn default() -> PutComponentTemplate
fn default() -> PutComponentTemplate
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PutComponentTemplate
impl<'de> Deserialize<'de> for PutComponentTemplate
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 PutComponentTemplate
impl RefUnwindSafe for PutComponentTemplate
impl Send for PutComponentTemplate
impl Sync for PutComponentTemplate
impl Unpin for PutComponentTemplate
impl UnsafeUnpin for PutComponentTemplate
impl UnwindSafe for PutComponentTemplate
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