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

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

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.

Get a serialisable instance of the type mapping as a field.

Get a serialisable instance of the type mapping as an indexable type

Implementations on Foreign Types

impl<TDocument, TMapping> DocumentType for Mutex<TDocument> where
    TDocument: DocumentType<Mapping = TMapping> + Serialize,
    TMapping: DocumentMapping
[src]

[src]

[src]

[src]

impl DocumentType for Value
[src]

impl<'a, TDocument, TMapping> DocumentType for &'a TDocument where
    TDocument: DocumentType<Mapping = TMapping> + Serialize,
    TMapping: DocumentMapping
[src]

[src]

[src]

[src]

impl<'a, TDocument, TMapping> DocumentType for Cow<'a, TDocument> where
    TDocument: DocumentType<Mapping = TMapping> + Serialize + Clone,
    TMapping: DocumentMapping
[src]

[src]

[src]

[src]

impl<TDocument, TMapping> DocumentType for RwLock<TDocument> where
    TDocument: DocumentType<Mapping = TMapping> + Serialize,
    TMapping: DocumentMapping
[src]

[src]

[src]

[src]

Implementors