Trait Searchable

Source
pub trait Searchable: Encryptable {
    // Provided methods
    fn attribute_for_index(
        &self,
        _index_name: &str,
        _index_type: IndexType,
    ) -> Option<ComposablePlaintext> { ... }
    fn protected_indexes() -> Cow<'static, [(Cow<'static, str>, IndexType)]> { ... }
    fn index_by_name(
        _index_name: &str,
        _index_type: IndexType,
    ) -> Option<Box<dyn ComposableIndex + Send>> { ... }
}

Provided Methods§

Source

fn attribute_for_index( &self, _index_name: &str, _index_type: IndexType, ) -> Option<ComposablePlaintext>

Source

fn protected_indexes() -> Cow<'static, [(Cow<'static, str>, IndexType)]>

Returns of indexes with their name and type.

Source

fn index_by_name( _index_name: &str, _index_type: IndexType, ) -> Option<Box<dyn ComposableIndex + Send>>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§