[][src]Struct vault_rs::Authentication

pub struct Authentication {
    pub client_token: Secret,
    pub accessor: String,
    pub policies: Vec<String>,
    pub token_policies: Vec<String>,
    pub metadata: HashMap<String, String>,
    pub lease_duration: u64,
    pub renewable: bool,
    pub entity_id: String,
    pub token_type: TokenType,
}

Authentication data from Vault

Fields

client_token: Secret

The actual token

accessor: String

The accessor for the Token

policies: Vec<String>

List of policies for token, including from Identity

token_policies: Vec<String>

List of tokens directly assigned to token

metadata: HashMap<String, String>

Arbitrary metadata

lease_duration: u64

Lease Duration for the token

renewable: bool

Whether the token is renewable

entity_id: String

UUID for the entity

token_type: TokenType

Type of token

Trait Implementations

impl Clone for Authentication[src]

impl Debug for Authentication[src]

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

impl Eq for Authentication[src]

impl PartialEq<Authentication> for Authentication[src]

impl Serialize for Authentication[src]

impl StructuralEq for Authentication[src]

impl StructuralPartialEq for Authentication[src]

Auto Trait Implementations

impl RefUnwindSafe for Authentication

impl Send for Authentication

impl Sync for Authentication

impl Unpin for Authentication

impl UnwindSafe for Authentication

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