Trait elastic::types::document::mapping::DocumentMapping
[−]
[src]
pub trait DocumentMapping: PropertiesMapping + Default + PropertiesMapping + Default { fn name() -> &'static str; fn data_type() -> &'static str { ... } fn dynamic() -> Option<Dynamic> { ... } fn enabled() -> Option<bool> { ... } fn include_in_all() -> Option<bool> { ... } }
The base requirements for mapping an object
type.
Required Methods
Provided Methods
fn data_type() -> &'static str
Get the type name for this mapping, like object
or nested
.
fn dynamic() -> Option<Dynamic>
Whether or not new properties should be added dynamically to an existing object.
Accepts true
(default), false
and strict
.
fn enabled() -> Option<bool>
Whether the JSON value given for the object field should be parsed and indexed
(true
, default) or completely ignored (false
).
fn include_in_all() -> Option<bool>
Sets the default include_in_all
value for all the properties within the object.
The object itself is not added to the _all
field.
Implementors
impl DocumentMapping for ValueDocumentMapping