pub struct PutMapping {
pub properties: Option<Value>,
pub field_names: Option<FieldNamesField>,
pub source: Option<SourceField>,
pub dynamic_date_formats: Option<Vec<String>>,
pub date_detection: Option<bool>,
pub routing: Option<RoutingField>,
pub meta: Option<Metadata>,
pub dynamic: Option<String>,
pub numeric_detection: Option<bool>,
}Expand description
PutMapping The mapping definition
Fields§
§properties: Option<Value>Mapping for a field. For new fields, this mapping can include:
- Field name
- Field data type
- Mapping parameters
field_names: Option<FieldNamesField>§source: Option<SourceField>§dynamic_date_formats: Option<Vec<String>>If date detection is enabled then new string fields are checked
against dynamic_date_formats and if the value matches then
a new date field is added instead of string.
date_detection: Option<bool>Controls whether dynamic date detection is enabled.
routing: Option<RoutingField>§meta: Option<Metadata>§dynamic: Option<String>§numeric_detection: Option<bool>Automatically map strings into numeric data types for all fields.
Implementations§
Source§impl PutMapping
impl PutMapping
Sourcepub fn new() -> PutMapping
pub fn new() -> PutMapping
The mapping definition
Trait Implementations§
Source§impl Clone for PutMapping
impl Clone for PutMapping
Source§fn clone(&self) -> PutMapping
fn clone(&self) -> PutMapping
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 PutMapping
impl Debug for PutMapping
Source§impl Default for PutMapping
impl Default for PutMapping
Source§fn default() -> PutMapping
fn default() -> PutMapping
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PutMapping
impl<'de> Deserialize<'de> for PutMapping
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
Source§impl PartialEq for PutMapping
impl PartialEq for PutMapping
Source§fn eq(&self, other: &PutMapping) -> bool
fn eq(&self, other: &PutMapping) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PutMapping
impl Serialize for PutMapping
impl StructuralPartialEq for PutMapping
Auto Trait Implementations§
impl Freeze for PutMapping
impl RefUnwindSafe for PutMapping
impl Send for PutMapping
impl Sync for PutMapping
impl Unpin for PutMapping
impl UnsafeUnpin for PutMapping
impl UnwindSafe for PutMapping
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