cipherstash_client::encryption::compound_indexer

Trait ComposableIndex

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§

fn compose_index( &self, key: &IndexKey, plaintext: ComposablePlaintext, accumulator: Accumulator, ) -> Result<Accumulator, EncryptionError>

Provided Methods§

fn compose_query( &self, key: &IndexKey, plaintext: ComposablePlaintext, accumulator: Accumulator, ) -> Result<Accumulator, EncryptionError>

Trait Implementations§

§

impl ComposableIndex for Box<dyn ComposableIndex + Send>

§

fn compose_index( &self, key: &IndexKey, plaintext: ComposablePlaintext, accumulator: Accumulator, ) -> Result<Accumulator, EncryptionError>

§

fn compose_query( &self, key: &IndexKey, plaintext: ComposablePlaintext, accumulator: Accumulator, ) -> Result<Accumulator, EncryptionError>

Implementations on Foreign Types§

§

impl ComposableIndex for Box<dyn ComposableIndex + Send>

§

fn compose_index( &self, key: &IndexKey, plaintext: ComposablePlaintext, accumulator: Accumulator, ) -> Result<Accumulator, EncryptionError>

§

fn compose_query( &self, key: &IndexKey, plaintext: ComposablePlaintext, accumulator: Accumulator, ) -> Result<Accumulator, EncryptionError>

Implementors§