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
type Mapping: DocumentMapping
The mapping type for this document.
Provided Methods
fn name() -> &'static str
Get the name for this type.
This is a convenience method that returns the name
of the bound DocumentMapping
.
Implementors
impl<TDocument, TMapping> DocumentType for Mutex<TDocument> where
TDocument: DocumentType<Mapping = TMapping> + Serialize,
TMapping: DocumentMapping,impl<'a, TDocument, TMapping> DocumentType for &'a TDocument where
TDocument: DocumentType<Mapping = TMapping> + Serialize,
TMapping: DocumentMapping,impl<TDocument, TMapping> DocumentType for RwLock<TDocument> where
TDocument: DocumentType<Mapping = TMapping> + Serialize,
TMapping: DocumentMapping,impl<'a, TDocument, TMapping> DocumentType for Cow<'a, TDocument> where
TDocument: DocumentType<Mapping = TMapping> + Serialize + Clone,
TMapping: DocumentMapping,impl DocumentType for Value