Struct vit_servicing_station_lib::db::models::api_tokens::ApiTokenData
source · pub struct ApiTokenData {
pub token: ApiToken,
pub creation_time: i64,
pub expire_time: i64,
}
Fields§
§token: ApiToken
§creation_time: i64
§expire_time: i64
Trait Implementations§
source§impl Clone for ApiTokenData
impl Clone for ApiTokenData
source§fn clone(&self) -> ApiTokenData
fn clone(&self) -> ApiTokenData
Returns a copy 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 ApiTokenData
impl Debug for ApiTokenData
source§impl Insertable<table> for ApiTokenData
impl Insertable<table> for ApiTokenData
§type Values = (Eq<token, <Vec<u8, Global> as AsExpression<<token as Expression>::SqlType>>::Expression>, Eq<creation_time, <i64 as AsExpression<<creation_time as Expression>::SqlType>>::Expression>, Eq<expire_time, <i64 as AsExpression<<expire_time as Expression>::SqlType>>::Expression>)
type Values = (Eq<token, <Vec<u8, Global> as AsExpression<<token as Expression>::SqlType>>::Expression>, Eq<creation_time, <i64 as AsExpression<<creation_time as Expression>::SqlType>>::Expression>, Eq<expire_time, <i64 as AsExpression<<expire_time as Expression>::SqlType>>::Expression>)
The
VALUES
clause to insert these records Read more§fn insert_into(
self,
table: T
) -> InsertStatement<T, Self::Values, Insert, NoReturningClause>where
Self: Sized,
fn insert_into( self, table: T ) -> InsertStatement<T, Self::Values, Insert, NoReturningClause>where Self: Sized,
Insert
self
into a given table. Read moreAuto Trait Implementations§
impl RefUnwindSafe for ApiTokenData
impl Send for ApiTokenData
impl Sync for ApiTokenData
impl Unpin for ApiTokenData
impl UnwindSafe for ApiTokenData
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