Struct lemmy_db_schema::source::private_message::PrivateMessageForm [−][src]
pub struct PrivateMessageForm {
pub creator_id: PersonId,
pub recipient_id: PersonId,
pub content: String,
pub deleted: Option<bool>,
pub read: Option<bool>,
pub published: Option<NaiveDateTime>,
pub updated: Option<NaiveDateTime>,
pub ap_id: Option<DbUrl>,
pub local: Option<bool>,
}
Fields
creator_id: PersonId
recipient_id: PersonId
content: String
deleted: Option<bool>
read: Option<bool>
published: Option<NaiveDateTime>
updated: Option<NaiveDateTime>
ap_id: Option<DbUrl>
local: Option<bool>
Trait Implementations
type Changeset = <(Eq<creator_id, &'update PersonId>, Eq<recipient_id, &'update PersonId>, Eq<content, &'update String>, Option<Eq<deleted, &'update bool>>, Option<Eq<read, &'update bool>>, Option<Eq<published, &'update NaiveDateTime>>, Option<Eq<updated, &'update NaiveDateTime>>, Option<Eq<ap_id, &'update DbUrl>>, Option<Eq<local, &'update bool>>) as AsChangeset>::Changeset
type Changeset = <(Eq<creator_id, &'update PersonId>, Eq<recipient_id, &'update PersonId>, Eq<content, &'update String>, Option<Eq<deleted, &'update bool>>, Option<Eq<read, &'update bool>>, Option<Eq<published, &'update NaiveDateTime>>, Option<Eq<updated, &'update NaiveDateTime>>, Option<Eq<ap_id, &'update DbUrl>>, Option<Eq<local, &'update bool>>) as AsChangeset>::Changeset
The update statement this type represents
Convert self
into the actual update statement being executed
The update statement this type represents
Convert self
into the actual update statement being executed
Returns the “default value” for a type. Read more
type Values = <(Option<Eq<creator_id, PersonId>>, Option<Eq<recipient_id, PersonId>>, Option<Eq<content, String>>, Option<Eq<deleted, bool>>, Option<Eq<read, bool>>, Option<Eq<published, NaiveDateTime>>, Option<Eq<updated, NaiveDateTime>>, Option<Eq<ap_id, DbUrl>>, Option<Eq<local, bool>>) as Insertable<table>>::Values
type Values = <(Option<Eq<creator_id, PersonId>>, Option<Eq<recipient_id, PersonId>>, Option<Eq<content, String>>, Option<Eq<deleted, bool>>, Option<Eq<read, bool>>, Option<Eq<published, NaiveDateTime>>, Option<Eq<updated, NaiveDateTime>>, Option<Eq<ap_id, DbUrl>>, Option<Eq<local, 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<creator_id, &'insert PersonId>>, Option<Eq<recipient_id, &'insert PersonId>>, Option<Eq<content, &'insert String>>, Option<Eq<deleted, &'insert bool>>, Option<Eq<read, &'insert bool>>, Option<Eq<published, &'insert NaiveDateTime>>, Option<Eq<updated, &'insert NaiveDateTime>>, Option<Eq<ap_id, &'insert DbUrl>>, Option<Eq<local, &'insert bool>>) as Insertable<table>>::Values
type Values = <(Option<Eq<creator_id, &'insert PersonId>>, Option<Eq<recipient_id, &'insert PersonId>>, Option<Eq<content, &'insert String>>, Option<Eq<deleted, &'insert bool>>, Option<Eq<read, &'insert bool>>, Option<Eq<published, &'insert NaiveDateTime>>, Option<Eq<updated, &'insert NaiveDateTime>>, Option<Eq<ap_id, &'insert DbUrl>>, Option<Eq<local, &'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 PrivateMessageForm
impl Send for PrivateMessageForm
impl Sync for PrivateMessageForm
impl Unpin for PrivateMessageForm
impl UnwindSafe for PrivateMessageForm
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