Trait 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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§