Struct lemmy_db_schema::source::moderator::ModBanFromCommunityForm [−][src]
pub struct ModBanFromCommunityForm {
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>,
}
Fields
mod_person_id: PersonId
other_person_id: PersonId
community_id: CommunityId
reason: Option<String>
banned: Option<bool>
expires: Option<NaiveDateTime>
Trait Implementations
type Changeset = <(Eq<mod_person_id, &'update PersonId>, Eq<other_person_id, &'update PersonId>, Eq<community_id, &'update CommunityId>, Option<Eq<reason, &'update String>>, Option<Eq<banned, &'update bool>>, Option<Eq<expires, &'update NaiveDateTime>>) as AsChangeset>::Changeset
type Changeset = <(Eq<mod_person_id, &'update PersonId>, Eq<other_person_id, &'update PersonId>, Eq<community_id, &'update CommunityId>, Option<Eq<reason, &'update String>>, Option<Eq<banned, &'update bool>>, Option<Eq<expires, &'update NaiveDateTime>>) as AsChangeset>::Changeset
The update statement this type represents
Convert self
into the actual update statement being executed
type Changeset = <(Eq<mod_person_id, PersonId>, Eq<other_person_id, PersonId>, Eq<community_id, CommunityId>, Option<Eq<reason, String>>, Option<Eq<banned, bool>>, Option<Eq<expires, NaiveDateTime>>) as AsChangeset>::Changeset
type Changeset = <(Eq<mod_person_id, PersonId>, Eq<other_person_id, PersonId>, Eq<community_id, CommunityId>, Option<Eq<reason, String>>, Option<Eq<banned, bool>>, Option<Eq<expires, NaiveDateTime>>) as AsChangeset>::Changeset
The update statement this type represents
Convert self
into the actual update statement being executed
type Values = <(Option<Eq<mod_person_id, PersonId>>, Option<Eq<other_person_id, PersonId>>, Option<Eq<community_id, CommunityId>>, Option<Eq<reason, String>>, Option<Eq<banned, bool>>, Option<Eq<expires, NaiveDateTime>>) as Insertable<table>>::Values
type Values = <(Option<Eq<mod_person_id, PersonId>>, Option<Eq<other_person_id, PersonId>>, Option<Eq<community_id, CommunityId>>, Option<Eq<reason, String>>, Option<Eq<banned, bool>>, Option<Eq<expires, NaiveDateTime>>) as Insertable<table>>::Values
The VALUES
clause to insert these records Read more
Insert self
into a given table. Read more
type Values = <(Option<Eq<mod_person_id, &'insert PersonId>>, Option<Eq<other_person_id, &'insert PersonId>>, Option<Eq<community_id, &'insert CommunityId>>, Option<Eq<reason, &'insert String>>, Option<Eq<banned, &'insert bool>>, Option<Eq<expires, &'insert NaiveDateTime>>) as Insertable<table>>::Values
type Values = <(Option<Eq<mod_person_id, &'insert PersonId>>, Option<Eq<other_person_id, &'insert PersonId>>, Option<Eq<community_id, &'insert CommunityId>>, Option<Eq<reason, &'insert String>>, Option<Eq<banned, &'insert bool>>, Option<Eq<expires, &'insert NaiveDateTime>>) as Insertable<table>>::Values
The VALUES
clause to insert these records Read more
Insert self
into a given table. Read more
Auto Trait Implementations
impl RefUnwindSafe for ModBanFromCommunityForm
impl Send for ModBanFromCommunityForm
impl Sync for ModBanFromCommunityForm
impl Unpin for ModBanFromCommunityForm
impl UnwindSafe for ModBanFromCommunityForm
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