Struct lemmy_db_schema::PersonId [−][src]
pub struct PersonId(pub i32);
Tuple Fields
0: i32
Trait Implementations
type Expression = Bound<ST, i32>
type Expression = Bound<ST, i32>
The expression being returned
Perform the conversion
impl<'expr, ST> AsExpression<ST> for &'expr PersonId where
Bound<ST, i32>: Expression<SqlType = ST>,
impl<'expr, ST> AsExpression<ST> for &'expr PersonId where
Bound<ST, i32>: Expression<SqlType = ST>,
type Expression = Bound<ST, &'expr i32>
type Expression = Bound<ST, &'expr i32>
The expression being returned
Perform the conversion
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
impl<ST, DB> FromSqlRow<ST, DB> for PersonId where
i32: FromSql<ST, DB>,
DB: Backend,
DB: HasSqlType<ST>,
impl<ST, DB> FromSqlRow<ST, DB> for PersonId where
i32: FromSql<ST, DB>,
DB: Backend,
DB: HasSqlType<ST>,
Can the SQL generated by Self
be uniquely identified by its type? Read more
impl<ST, DB> Queryable<ST, DB> for PersonId where
i32: FromSqlRow<ST, DB>,
DB: Backend,
DB: HasSqlType<ST>,
impl<ST, DB> Queryable<ST, DB> for PersonId where
i32: FromSqlRow<ST, DB>,
DB: Backend,
DB: HasSqlType<ST>,
Auto Trait Implementations
impl RefUnwindSafe for PersonId
impl UnwindSafe for PersonId
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Convert self
to an expression for Diesel’s query builder. Read more
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>,
Convert &self
to an expression for Diesel’s query builder. Read more