pub struct KeyMeta {
pub name: String,
pub created_at: String,
pub last_used: Option<String>,
}Expand description
Metadata about an API key (stored alongside the hash).
Fields§
§name: StringHuman-readable name for the key.
created_at: StringWhen the key was created.
last_used: Option<String>When the key was last used (ISO 8601).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for KeyMeta
impl<'de> Deserialize<'de> for KeyMeta
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for KeyMeta
impl RefUnwindSafe for KeyMeta
impl Send for KeyMeta
impl Sync for KeyMeta
impl Unpin for KeyMeta
impl UnsafeUnpin for KeyMeta
impl UnwindSafe for KeyMeta
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