[][src]Trait pallet::DocumentLike

pub trait DocumentLike: Serialize + DeserializeOwned + Send {
    type IndexFieldsType: Sync;
    fn index_fields(
        schema_builder: &mut SchemaBuilder
    ) -> Result<Self::IndexFieldsType>;
fn as_search_document(
        &self,
        index_fields: &Self::IndexFieldsType
    ) -> Result<Document>; fn default_search_fields(
        _index_fields: &Self::IndexFieldsType
    ) -> Vec<Field> { ... }
fn tree_name() -> Option<String> { ... } }

Associated Types

Loading content...

Required methods

fn index_fields(
    schema_builder: &mut SchemaBuilder
) -> Result<Self::IndexFieldsType>

fn as_search_document(
    &self,
    index_fields: &Self::IndexFieldsType
) -> Result<Document>

Loading content...

Provided methods

fn default_search_fields(_index_fields: &Self::IndexFieldsType) -> Vec<Field>

fn tree_name() -> Option<String>

Loading content...

Implementors

Loading content...