[][src]Struct secret_keeper::WrappedKey

pub struct WrappedKey {
    pub key_enc: String,
    pub key_uri: String,
    pub ident: Option<String>,
}

A WrappedKey provides a way to store and communicate encrypted-encryption keys.

Fields

key_enc: String

key_enc holds a string representation of an encrypted key The specific format may vary depending on the SecretKeeper, but it is usually some recognizable prefix followed by a base-64-encoded key

key_uri: String

key_uri is the identifier for the wrapping method and/or the key used. The scheme of the uri determines the keeper type. For example, hashivault://abc is a key named 'abc' on a hashicorp vault.

ident: Option<String>

ident is any optional identifier for the key. It might be a fingerprint, a uuid, or an email address of the owner of a public (asymmetric) key.

Trait Implementations

impl Clone for WrappedKey[src]

impl Debug for WrappedKey[src]

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

impl PartialEq<WrappedKey> for WrappedKey[src]

impl Serialize for WrappedKey[src]

impl StructuralPartialEq for WrappedKey[src]

Auto Trait Implementations

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: for<'de> Deserialize<'de>, 
[src]

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

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

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

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.