Trait cipherstash_dynamodb::traits::Decryptable

source ·
pub trait Decryptable: Sized {
    // Required methods
    fn from_unsealed(unsealed: Unsealed) -> Result<Self, SealError>;
    fn protected_attributes() -> Cow<'static, [Cow<'static, str>]>;
    fn plaintext_attributes() -> Cow<'static, [Cow<'static, str>]>;
}

Required Methods§

source

fn from_unsealed(unsealed: Unsealed) -> Result<Self, SealError>

Convert an Unsealed into a Self.

source

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

Defines what attributes are protected and decryptable for this type.

Must be equal to or a subset of protected_attributes on the Encryptable type.

source

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

Defines what attributes are plaintext for this type.

Must be equal to or a subset of protected_attributes on the Encryptable type.

Object Safety§

This trait is not object safe.

Implementors§