pub struct ApiKeyInfo {
pub id: String,
pub name: String,
pub prefix: String,
pub created_at: i64,
pub expires_at: Option<i64>,
pub last_used_at: Option<i64>,
}Expand description
API Key 信息
Fields§
§id: StringKey ID
name: StringKey 名称
prefix: StringKey 前缀 (用于识别)
created_at: i64创建时间
expires_at: Option<i64>过期时间
last_used_at: Option<i64>最后使用时间
Trait Implementations§
Source§impl Clone for ApiKeyInfo
impl Clone for ApiKeyInfo
Source§fn clone(&self) -> ApiKeyInfo
fn clone(&self) -> ApiKeyInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ApiKeyInfo
impl Debug for ApiKeyInfo
Source§impl<'de> Deserialize<'de> for ApiKeyInfo
impl<'de> Deserialize<'de> for ApiKeyInfo
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 ApiKeyInfo
impl RefUnwindSafe for ApiKeyInfo
impl Send for ApiKeyInfo
impl Sync for ApiKeyInfo
impl Unpin for ApiKeyInfo
impl UnsafeUnpin for ApiKeyInfo
impl UnwindSafe for ApiKeyInfo
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