cipherstash_dynamodb::traits

Trait ComposableIndex

source
pub trait ComposableIndex: Debug {
    // Required method
    fn compose_index(
        &self,
        key: &IndexKey,
        plaintext: ComposablePlaintext,
        accumulator: Accumulator,
    ) -> Result<Accumulator, EncryptionError>;

    // Provided method
    fn compose_query(
        &self,
        key: &IndexKey,
        plaintext: ComposablePlaintext,
        accumulator: Accumulator,
    ) -> Result<Accumulator, EncryptionError> { ... }
}
Expand description

Trait to represent any index that can be composed with other indexes in a Structured Encryption scheme.

Required Methods§

Provided Methods§

Trait Implementations§

Implementations on Foreign Types§

source§

impl ComposableIndex for Box<dyn ComposableIndex + Send>

Implementors§