pub struct ApiKeyHash {
pub id: String,
pub hash: String,
pub name: String,
pub created_at: DateTime<Utc>,
pub expires_at: Option<DateTime<Utc>>,
pub last_used: Option<DateTime<Utc>>,
pub active: bool,
}Expand description
API key hash for storage
Fields§
§id: String§hash: String§name: String§created_at: DateTime<Utc>§expires_at: Option<DateTime<Utc>>§last_used: Option<DateTime<Utc>>§active: boolTrait Implementations§
Source§impl Clone for ApiKeyHash
impl Clone for ApiKeyHash
Source§fn clone(&self) -> ApiKeyHash
fn clone(&self) -> ApiKeyHash
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 moreAuto Trait Implementations§
impl Freeze for ApiKeyHash
impl RefUnwindSafe for ApiKeyHash
impl Send for ApiKeyHash
impl Sync for ApiKeyHash
impl Unpin for ApiKeyHash
impl UnwindSafe for ApiKeyHash
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