pub struct IssuedKey {
pub token: String,
pub prefix: String,
}Expand description
A newly minted key: token is the only time the plaintext exists —
show it once, store nothing; prefix is public and safe to display.
Fields§
§token: StringThe full plaintext token: {namespace}_{mode}_{id}_{secret}.
prefix: StringThe public prefix {namespace}_{mode}_{id}, exactly as stored.
Trait Implementations§
impl Eq for IssuedKey
impl StructuralPartialEq for IssuedKey
Auto Trait Implementations§
impl Freeze for IssuedKey
impl RefUnwindSafe for IssuedKey
impl Send for IssuedKey
impl Sync for IssuedKey
impl Unpin for IssuedKey
impl UnsafeUnpin for IssuedKey
impl UnwindSafe for IssuedKey
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.