Struct lemmy_db_schema::LocalUserId [−][src]
pub struct LocalUserId(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 LocalUserId where
Bound<ST, i32>: Expression<SqlType = ST>,
impl<'expr, ST> AsExpression<ST> for &'expr LocalUserId 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> FromSql<ST, DB> for LocalUserId where
i32: FromSql<ST, DB>,
DB: Backend,
DB: HasSqlType<ST>,
impl<ST, DB> FromSql<ST, DB> for LocalUserId where
i32: FromSql<ST, DB>,
DB: Backend,
DB: HasSqlType<ST>,
impl<ST, DB> FromSqlRow<ST, DB> for LocalUserId where
i32: FromSql<ST, DB>,
DB: Backend,
DB: HasSqlType<ST>,
impl<ST, DB> FromSqlRow<ST, DB> for LocalUserId where
i32: FromSql<ST, DB>,
DB: Backend,
DB: HasSqlType<ST>,
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Can the SQL generated by Self
be uniquely identified by its type? Read more
impl<ST, DB> Queryable<ST, DB> for LocalUserId where
i32: FromSqlRow<ST, DB>,
DB: Backend,
DB: HasSqlType<ST>,
impl<ST, DB> Queryable<ST, DB> for LocalUserId where
i32: FromSqlRow<ST, DB>,
DB: Backend,
DB: HasSqlType<ST>,
impl<ST, DB> ToSql<ST, DB> for LocalUserId where
i32: ToSql<ST, DB>,
DB: Backend,
DB: HasSqlType<ST>,
impl<ST, DB> ToSql<ST, DB> for LocalUserId where
i32: ToSql<ST, DB>,
DB: Backend,
DB: HasSqlType<ST>,
Auto Trait Implementations
impl RefUnwindSafe for LocalUserId
impl Send for LocalUserId
impl Sync for LocalUserId
impl Unpin for LocalUserId
impl UnwindSafe for LocalUserId
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