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