Trait Encryptable

Source
pub trait Encryptable:
    Debug
    + Sized
    + Identifiable {
    // Required methods
    fn protected_attributes() -> Cow<'static, [Cow<'static, str>]>;
    fn plaintext_attributes() -> Cow<'static, [Cow<'static, str>]>;
    fn into_unsealed(self) -> Unsealed;
}

Required Methods§

Source

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

Defines what attributes are protected and should be encrypted for this type.

Must be equal to or a superset of protected_attributes on the Decryptable type.

Source

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

Defines what attributes are plaintext for this type.

Must be equal to or a superset of plaintext_attributes on the Decryptable type.

Source

fn into_unsealed(self) -> Unsealed

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§