[][src]Struct pachyderm::auth::OtpInfo

pub struct OtpInfo {
    pub subject: String,
    pub session_expiration: Option<Timestamp>,
}

OTPInfo is the analogue of 'TokenInfo' for Authentication Codes (short-lived, one-time-use codes that are passed to the frontend and then exchanged for longer-lived tokens)

Fields

subject: String

Subject (i.e. Pachyderm account) that a given OTP authenticates. This may be copied into the 'subject' field of a TokenInfo, and therefore has the same format, with the same prefixes.

session_expiration: Option<Timestamp>

session_expiration indicates when the subject's session expires, a.k.a. when the Token to which this OTP converts expires (likely later than this OTP expires, but never earlier).

Trait Implementations

impl Clone for OtpInfo[src]

impl Debug for OtpInfo[src]

impl Default for OtpInfo[src]

impl Message for OtpInfo[src]

impl PartialEq<OtpInfo> for OtpInfo[src]

impl StructuralPartialEq for OtpInfo[src]

Auto Trait Implementations

impl RefUnwindSafe for OtpInfo

impl Send for OtpInfo

impl Sync for OtpInfo

impl Unpin for OtpInfo

impl UnwindSafe for OtpInfo

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> From<T> for T[src]

impl<T> Instrument for T[src]

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

impl<T> IntoRequest<T> for 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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]