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

pub struct ConfigureKey {
    pub min_decryption_version: Option<u64>,
    pub min_encryption_version: Option<u64>,
    pub deletion_allowed: Option<bool>,
    pub exportable: Option<bool>,
    pub allow_plaintext_backup: Option<bool>,
}

Parameters for Key Configuration

Fields

min_decryption_version: Option<u64>

Specifies the minimum version of ciphertext allowed to be decrypted. Adjusting this as part of a key rotation policy can prevent old copies of ciphertext from being decrypted, should they fall into the wrong hands. For signatures, this value contasync rols the minimum version of signature that can be verified against. For HMACs, this controls the minimum version of a key allowed to be used as the key for verification.

min_encryption_version: Option<u64>

Specifies the minimum version of the key that can be used to encrypt plaintext, sign payloads, or generate HMACs. Must be 0 (which will use the latest version) or a value greater or equal to min_decryption_version.

deletion_allowed: Option<bool>

Specifies if the key is allowed to be deleted.

exportable: Option<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: Option<bool>

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

Trait Implementations

impl Debug for ConfigureKey[src]

impl Default for ConfigureKey[src]

impl Eq for ConfigureKey[src]

impl PartialEq<ConfigureKey> for ConfigureKey[src]

impl Serialize for ConfigureKey[src]

impl StructuralEq for ConfigureKey[src]

impl StructuralPartialEq for ConfigureKey[src]

Auto Trait Implementations

impl RefUnwindSafe for ConfigureKey

impl Send for ConfigureKey

impl Sync for ConfigureKey

impl Unpin for ConfigureKey

impl UnwindSafe for ConfigureKey

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<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[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.