[][src]Struct vault_rs::secrets::transit::Key

pub struct Key {
    pub name: String,
    pub derived: bool,
    pub exportable: bool,
    pub allow_plaintext_backup: bool,
    pub type: KeyType,
    pub deletion_allowed: bool,
    pub keys: HashMap<String, Value>,
    pub min_decryption_version: u64,
    pub min_encryption_version: u64,
    pub supports_encryption: bool,
    pub supports_decryption: bool,
    pub supports_derivation: bool,
    pub supports_signing: bool,
}

Transit Engine Key

Fields

name: String

Specifies the name of the encryption key to create.

derived: bool

Specifies if key derivation is to be used. If enabled, all encrypt/decrypt requests to this named key must provide a context which is used for key derivation.

exportable: bool

Enables keys to be exportable. This allows for all the valid keys in the key ring to be exported. Once set, this cannot be disabled.

allow_plaintext_backup: bool

If set, enables taking backup of named key in the plaintext format. Once set, this cannot be disabled.

type: KeyType

Specifies the type of key to create.

deletion_allowed: bool

Whether they key can be deleted

keys: HashMap<String, Value>

List of key versions

min_decryption_version: u64

Minimum decryption version

min_encryption_version: u64

Minimum encryption version

supports_encryption: bool

Key supports encryption

supports_decryption: bool

Key supports decryption

supports_derivation: bool

Key supports derivation

supports_signing: bool

Key supports signing

Trait Implementations

impl Debug for Key[src]

impl Default for Key[src]

impl<'de> Deserialize<'de> for Key[src]

impl PartialEq<Key> for Key[src]

impl StructuralPartialEq for Key[src]

Auto Trait Implementations

impl RefUnwindSafe for Key

impl Send for Key

impl Sync for Key

impl Unpin for Key

impl UnwindSafe for Key

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.