cipherstash_dynamodb::traits

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>>

Object Safety§

This trait is not object safe.

Implementors§