[−][src]Module elastic_types::boolean
Implementation of the Elasticsearch boolean
types.
Examples
For defining your own boolean mapping, see mapping details.
Map with a default boolean
:
struct MyType { pub field: bool }
Map with a custom boolean
:
struct MyType { pub field: Boolean<MyBooleanMapping> }
Map a custom type as a boolean
field:
#[derive(Serialize)] struct MyBooleanField(bool); impl BooleanFieldType<DefaultBooleanMapping> for MyBooleanField {}
Links
Modules
mapping | Mapping for the Elasticsearch |
prelude | Includes all types for the |
Structs
Boolean | An Elasticsearch |