Skip to main content

RunarEncrypt

Trait RunarEncrypt 

Source
pub trait RunarEncrypt: RunarEncryptable {
    type Encrypted: RunarDecrypt<Decrypted = Self> + Serialize;

    // Required method
    fn encrypt_with_keystore(
        &self,
        keystore: &Arc<KeyStore>,
        resolver: &dyn LabelResolver,
    ) -> Result<Self::Encrypted>;
}
Expand description

Trait for encrypting structs with selective field encryption

Required Associated Types§

Source

type Encrypted: RunarDecrypt<Decrypted = Self> + Serialize

Required Methods§

Source

fn encrypt_with_keystore( &self, keystore: &Arc<KeyStore>, resolver: &dyn LabelResolver, ) -> Result<Self::Encrypted>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§