pub struct EmailVerification {
pub id: Uuid,
pub user_id: Uuid,
pub token_hash: String,
pub expires_at: NaiveDateTime,
pub created_at: NaiveDateTime,
}Fields§
§id: Uuid§user_id: Uuid§token_hash: String§expires_at: NaiveDateTime§created_at: NaiveDateTimeTrait Implementations§
Source§impl Clone for EmailVerification
impl Clone for EmailVerification
Source§fn clone(&self) -> EmailVerification
fn clone(&self) -> EmailVerification
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 EmailVerification
impl Debug for EmailVerification
Source§impl<'de> Deserialize<'de> for EmailVerification
impl<'de> Deserialize<'de> for EmailVerification
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
Source§impl<__DB: Backend, __ST0, __ST1, __ST2, __ST3, __ST4> Queryable<(__ST0, __ST1, __ST2, __ST3, __ST4), __DB> for EmailVerificationwhere
(Uuid, Uuid, String, NaiveDateTime, NaiveDateTime): FromStaticSqlRow<(__ST0, __ST1, __ST2, __ST3, __ST4), __DB>,
impl<__DB: Backend, __ST0, __ST1, __ST2, __ST3, __ST4> Queryable<(__ST0, __ST1, __ST2, __ST3, __ST4), __DB> for EmailVerificationwhere
(Uuid, Uuid, String, NaiveDateTime, NaiveDateTime): FromStaticSqlRow<(__ST0, __ST1, __ST2, __ST3, __ST4), __DB>,
Source§type Row = (Uuid, Uuid, String, NaiveDateTime, NaiveDateTime)
type Row = (Uuid, Uuid, String, NaiveDateTime, NaiveDateTime)
The Rust type you’d like to map from. Read more
Source§fn build(
row: (Uuid, Uuid, String, NaiveDateTime, NaiveDateTime),
) -> Result<Self>
fn build( row: (Uuid, Uuid, String, NaiveDateTime, NaiveDateTime), ) -> Result<Self>
Construct an instance of this type
Source§impl<__DB: Backend> Selectable<__DB> for EmailVerification
impl<__DB: Backend> Selectable<__DB> for EmailVerification
Source§type SelectExpression = (id, user_id, token_hash, expires_at, created_at)
type SelectExpression = (id, user_id, token_hash, expires_at, created_at)
The expression you’d like to select. Read more
Source§fn construct_selection() -> Self::SelectExpression
fn construct_selection() -> Self::SelectExpression
Construct an instance of the expression
Auto Trait Implementations§
impl Freeze for EmailVerification
impl RefUnwindSafe for EmailVerification
impl Send for EmailVerification
impl Sync for EmailVerification
impl Unpin for EmailVerification
impl UnsafeUnpin for EmailVerification
impl UnwindSafe for EmailVerification
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<T> IntoSql for T
impl<T> IntoSql for T
Source§fn into_sql<T>(self) -> Self::Expression
fn into_sql<T>(self) -> Self::Expression
Convert
self to an expression for Diesel’s query builder. Read moreSource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
Convert
&self to an expression for Diesel’s query builder. Read moreSource§impl<T, DB> SelectableHelper<DB> for Twhere
T: Selectable<DB>,
DB: Backend,
impl<T, DB> SelectableHelper<DB> for Twhere
T: Selectable<DB>,
DB: Backend,
Source§fn as_select() -> SelectBy<T, DB>
fn as_select() -> SelectBy<T, DB>
Construct a select clause based on a
Selectable implementation. Read moreSource§fn as_returning() -> SelectBy<Self, DB>
fn as_returning() -> SelectBy<Self, DB>
An alias for
as_select that can be used with returning clausesSource§impl<T, ST, DB> StaticallySizedRow<ST, DB> for T
impl<T, ST, DB> StaticallySizedRow<ST, DB> for T
Source§const FIELD_COUNT: usize = <ST as crate::util::TupleSize>::SIZE
const FIELD_COUNT: usize = <ST as crate::util::TupleSize>::SIZE
The number of fields that this type will consume.