Struct lemmy_db_schema::source::moderator::ModBanFromCommunity [−][src]
pub struct ModBanFromCommunity {
pub id: i32,
pub mod_person_id: PersonId,
pub other_person_id: PersonId,
pub community_id: CommunityId,
pub reason: Option<String>,
pub banned: Option<bool>,
pub expires: Option<NaiveDateTime>,
pub when_: NaiveDateTime,
}
Fields
id: i32
mod_person_id: PersonId
other_person_id: PersonId
community_id: CommunityId
reason: Option<String>
banned: Option<bool>
expires: Option<NaiveDateTime>
when_: NaiveDateTime
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
impl<__DB: Backend, __ST> Queryable<__ST, __DB> for ModBanFromCommunity where
(i32, PersonId, PersonId, CommunityId, Option<String>, Option<bool>, Option<NaiveDateTime>, NaiveDateTime): Queryable<__ST, __DB>,
impl<__DB: Backend, __ST> Queryable<__ST, __DB> for ModBanFromCommunity where
(i32, PersonId, PersonId, CommunityId, Option<String>, Option<bool>, Option<NaiveDateTime>, NaiveDateTime): Queryable<__ST, __DB>,
Auto Trait Implementations
impl RefUnwindSafe for ModBanFromCommunity
impl Send for ModBanFromCommunity
impl Sync for ModBanFromCommunity
impl Unpin for ModBanFromCommunity
impl UnwindSafe for ModBanFromCommunity
Blanket Implementations
Mutably borrows from an owned value. Read more
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