Struct lemmy_db_schema::source::moderator::ModAddCommunityForm [−][src]
pub struct ModAddCommunityForm {
pub mod_person_id: PersonId,
pub other_person_id: PersonId,
pub community_id: CommunityId,
pub removed: Option<bool>,
}
Fields
mod_person_id: PersonId
other_person_id: PersonId
community_id: CommunityId
removed: Option<bool>
Trait Implementations
type Changeset = <(Eq<mod_person_id, &'update PersonId>, Eq<other_person_id, &'update PersonId>, Eq<community_id, &'update CommunityId>, Option<Eq<removed, &'update bool>>) as AsChangeset>::Changeset
type Changeset = <(Eq<mod_person_id, &'update PersonId>, Eq<other_person_id, &'update PersonId>, Eq<community_id, &'update CommunityId>, Option<Eq<removed, &'update bool>>) 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<removed, bool>>) as AsChangeset>::Changeset
type Changeset = <(Eq<mod_person_id, PersonId>, Eq<other_person_id, PersonId>, Eq<community_id, CommunityId>, Option<Eq<removed, bool>>) 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<removed, bool>>) 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<removed, bool>>) 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<removed, &'insert bool>>) 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<removed, &'insert bool>>) 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 ModAddCommunityForm
impl Send for ModAddCommunityForm
impl Sync for ModAddCommunityForm
impl Unpin for ModAddCommunityForm
impl UnwindSafe for ModAddCommunityForm
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