pub enum Credential {
Token(Token),
Lys(LysTable),
Open {
name: Option<String>,
},
}Expand description
Where the ticket’s pass comes from.
Variants§
Token(Token)
A pass read once from token_file, whose Debug reveals only its length.
Lys(LysTable)
[lys]: the agent’s own pass, asked of Lys with its key and renewed.
Open
Neither (ACCESS-010 R3): an open seat on an exchange that gates nothing; it presents no credential, only the name it declares (ACCESS-012 R2), when it has one.
Implementations§
Source§impl Credential
impl Credential
Sourcepub fn holder(&self) -> String
pub fn holder(&self) -> String
Who this seat is to an exchange, in one phrase: open:<name> or
open:anonymous for an open seat, the kind alone for the others.
Sourcepub fn open_record(&self) -> Vec<u8> ⓘ
pub fn open_record(&self) -> Vec<u8> ⓘ
The record an open seat presents at Connect (ACCESS-012 R2):
open:<name>, or nothing when it declares no name; empty for every
other credential, which present their pass instead.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Credential
impl RefUnwindSafe for Credential
impl Send for Credential
impl Sync for Credential
impl Unpin for Credential
impl UnsafeUnpin for Credential
impl UnwindSafe for Credential
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoMaybeUndefined<T> for T
impl<T> IntoMaybeUndefined<T> for T
Source§fn into_maybe_undefined(self) -> MaybeUndefined<T>
fn into_maybe_undefined(self) -> MaybeUndefined<T>
Converts this value into a three-state builder argument.
Source§impl<T> IntoOption<T> for T
impl<T> IntoOption<T> for T
Source§fn into_option(self) -> Option<T>
fn into_option(self) -> Option<T>
Converts this value into an optional builder argument.