Module elastic_types::boolean [] [src]

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 boolean type.

prelude

Includes all types for the boolean type.

Structs

Boolean

An Elasticsearch boolean with a mapping.