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§
sourcefn from_unsealed(unsealed: Unsealed) -> Result<Self, SealError>
fn from_unsealed(unsealed: Unsealed) -> Result<Self, SealError>
Convert an Unsealed
into a Self
.
sourcefn protected_attributes() -> Cow<'static, [Cow<'static, str>]>
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.
sourcefn plaintext_attributes() -> Cow<'static, [Cow<'static, str>]>
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.