pub trait HelperIndexable: Serialize {
    fn doc_id(&self) -> String;
}
Expand description

An object that can be indexed using ElasticHelper.

Required Methods

The ID that this document should be indexed under. Two documents with the same ID are considered to be semantically equivalent. If a document with the given ID is already present in the search index, it will be overridden if another document with the same ID is added.

Implementors