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

pub struct CreateKey {
    pub name: String,
    pub convergent_encryption: Option<bool>,
    pub derived: Option<bool>,
    pub exportable: Option<bool>,
    pub allow_plaintext_backup: Option<bool>,
    pub type: KeyType,
}

Parameters for creating a new Key

Fields

name: String

Specifies the name of the encryption key to create.

convergent_encryption: Option<bool>

If enabled, the key will support convergent encryption, where the same plaintext creates the same ciphertext. This requires derived to be set to true. When enabled, each encryption(/decryption/rewrap/datakey) operation will derive a nonce value rather than randomly generate it.

derived: Option<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: 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.

type: KeyType

Specifies the type of key to create.

Trait Implementations

impl Debug for CreateKey[src]

impl Default for CreateKey[src]

impl Eq for CreateKey[src]

impl PartialEq<CreateKey> for CreateKey[src]

impl Serialize for CreateKey[src]

impl StructuralEq for CreateKey[src]

impl StructuralPartialEq for CreateKey[src]

Auto Trait Implementations

impl RefUnwindSafe for CreateKey

impl Send for CreateKey

impl Sync for CreateKey

impl Unpin for CreateKey

impl UnwindSafe for CreateKey

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.