Trait elastic::types::prelude::DocumentType [] [src]

pub trait DocumentType {
    type Mapping: DocumentMapping;
    fn name() -> &'static str { ... }
}

The additional fields available to an indexable Elasticsearch type.

This trait is implemented for the type being mapped, rather than the mapping type itself.

Associated Types

The mapping type for this document.

Provided Methods

Get the name for this type.

This is a convenience method that returns the name of the bound DocumentMapping.

Implementors