pub struct KeyInfo {
pub id: KeyId,
pub tenant: Option<TenantId>,
pub scopes: Scopes,
pub label: String,
pub created_at: OffsetDateTime,
pub revoked_at: Option<OffsetDateTime>,
}Expand description
A key as list_keys shows it: never its token or hash.
Fields§
§id: KeyId§tenant: Option<TenantId>None for an operator key.
scopes: Scopes§label: String§created_at: OffsetDateTime§revoked_at: Option<OffsetDateTime>Implementations§
Trait Implementations§
impl Eq for KeyInfo
impl StructuralPartialEq for KeyInfo
Auto Trait Implementations§
impl Freeze for KeyInfo
impl RefUnwindSafe for KeyInfo
impl Send for KeyInfo
impl Sync for KeyInfo
impl Unpin for KeyInfo
impl UnsafeUnpin for KeyInfo
impl UnwindSafe for KeyInfo
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.