[][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.


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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

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

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

impl<T, U> Into<U> for T where
    U: From<T>, 

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

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

The type returned in the event of a conversion error.