Struct lemmy_db_schema::source::person::PersonForm [−][src]
pub struct PersonForm {Show 19 fields
pub name: String,
pub display_name: Option<Option<String>>,
pub avatar: Option<Option<DbUrl>>,
pub banned: Option<bool>,
pub published: Option<NaiveDateTime>,
pub updated: Option<NaiveDateTime>,
pub actor_id: Option<DbUrl>,
pub bio: Option<Option<String>>,
pub local: Option<bool>,
pub private_key: Option<Option<String>>,
pub public_key: Option<Option<String>>,
pub last_refreshed_at: Option<NaiveDateTime>,
pub banner: Option<Option<DbUrl>>,
pub deleted: Option<bool>,
pub inbox_url: Option<DbUrl>,
pub shared_inbox_url: Option<Option<DbUrl>>,
pub matrix_user_id: Option<Option<String>>,
pub admin: Option<bool>,
pub bot_account: Option<bool>,
}
Fields
name: String
display_name: Option<Option<String>>
avatar: Option<Option<DbUrl>>
banned: Option<bool>
published: Option<NaiveDateTime>
updated: Option<NaiveDateTime>
actor_id: Option<DbUrl>
bio: Option<Option<String>>
local: Option<bool>
private_key: Option<Option<String>>
public_key: Option<Option<String>>
last_refreshed_at: Option<NaiveDateTime>
deleted: Option<bool>
inbox_url: Option<DbUrl>
matrix_user_id: Option<Option<String>>
admin: Option<bool>
bot_account: Option<bool>
Trait Implementations
type Changeset = <(Eq<name, &'update String>, Option<Eq<display_name, &'update Option<String>>>, Option<Eq<avatar, &'update Option<DbUrl>>>, Option<Eq<banned, &'update bool>>, Option<Eq<published, &'update NaiveDateTime>>, Option<Eq<updated, &'update NaiveDateTime>>, Option<Eq<actor_id, &'update DbUrl>>, Option<Eq<bio, &'update Option<String>>>, Option<Eq<local, &'update bool>>, Option<Eq<private_key, &'update Option<String>>>, Option<Eq<public_key, &'update Option<String>>>, Option<Eq<last_refreshed_at, &'update NaiveDateTime>>, Option<Eq<banner, &'update Option<DbUrl>>>, Option<Eq<deleted, &'update bool>>, Option<Eq<inbox_url, &'update DbUrl>>, Option<Eq<shared_inbox_url, &'update Option<DbUrl>>>, Option<Eq<matrix_user_id, &'update Option<String>>>, Option<Eq<admin, &'update bool>>, Option<Eq<bot_account, &'update bool>>) as AsChangeset>::Changeset
type Changeset = <(Eq<name, &'update String>, Option<Eq<display_name, &'update Option<String>>>, Option<Eq<avatar, &'update Option<DbUrl>>>, Option<Eq<banned, &'update bool>>, Option<Eq<published, &'update NaiveDateTime>>, Option<Eq<updated, &'update NaiveDateTime>>, Option<Eq<actor_id, &'update DbUrl>>, Option<Eq<bio, &'update Option<String>>>, Option<Eq<local, &'update bool>>, Option<Eq<private_key, &'update Option<String>>>, Option<Eq<public_key, &'update Option<String>>>, Option<Eq<last_refreshed_at, &'update NaiveDateTime>>, Option<Eq<banner, &'update Option<DbUrl>>>, Option<Eq<deleted, &'update bool>>, Option<Eq<inbox_url, &'update DbUrl>>, Option<Eq<shared_inbox_url, &'update Option<DbUrl>>>, Option<Eq<matrix_user_id, &'update Option<String>>>, Option<Eq<admin, &'update bool>>, Option<Eq<bot_account, &'update bool>>) as AsChangeset>::Changeset
The update statement this type represents
Convert self
into the actual update statement being executed
type Changeset = <(Eq<name, String>, Option<Eq<display_name, Option<String>>>, Option<Eq<avatar, Option<DbUrl>>>, Option<Eq<banned, bool>>, Option<Eq<published, NaiveDateTime>>, Option<Eq<updated, NaiveDateTime>>, Option<Eq<actor_id, DbUrl>>, Option<Eq<bio, Option<String>>>, Option<Eq<local, bool>>, Option<Eq<private_key, Option<String>>>, Option<Eq<public_key, Option<String>>>, Option<Eq<last_refreshed_at, NaiveDateTime>>, Option<Eq<banner, Option<DbUrl>>>, Option<Eq<deleted, bool>>, Option<Eq<inbox_url, DbUrl>>, Option<Eq<shared_inbox_url, Option<DbUrl>>>, Option<Eq<matrix_user_id, Option<String>>>, Option<Eq<admin, bool>>, Option<Eq<bot_account, bool>>) as AsChangeset>::Changeset
type Changeset = <(Eq<name, String>, Option<Eq<display_name, Option<String>>>, Option<Eq<avatar, Option<DbUrl>>>, Option<Eq<banned, bool>>, Option<Eq<published, NaiveDateTime>>, Option<Eq<updated, NaiveDateTime>>, Option<Eq<actor_id, DbUrl>>, Option<Eq<bio, Option<String>>>, Option<Eq<local, bool>>, Option<Eq<private_key, Option<String>>>, Option<Eq<public_key, Option<String>>>, Option<Eq<last_refreshed_at, NaiveDateTime>>, Option<Eq<banner, Option<DbUrl>>>, Option<Eq<deleted, bool>>, Option<Eq<inbox_url, DbUrl>>, Option<Eq<shared_inbox_url, Option<DbUrl>>>, Option<Eq<matrix_user_id, Option<String>>>, Option<Eq<admin, bool>>, Option<Eq<bot_account, bool>>) as AsChangeset>::Changeset
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<name, String>>, Option<Eq<display_name, Option<String>>>, Option<Eq<avatar, Option<DbUrl>>>, Option<Eq<banned, bool>>, Option<Eq<published, NaiveDateTime>>, Option<Eq<updated, NaiveDateTime>>, Option<Eq<actor_id, DbUrl>>, Option<Eq<bio, Option<String>>>, Option<Eq<local, bool>>, Option<Eq<private_key, Option<String>>>, Option<Eq<public_key, Option<String>>>, Option<Eq<last_refreshed_at, NaiveDateTime>>, Option<Eq<banner, Option<DbUrl>>>, Option<Eq<deleted, bool>>, Option<Eq<inbox_url, DbUrl>>, Option<Eq<shared_inbox_url, Option<DbUrl>>>, Option<Eq<matrix_user_id, Option<String>>>, Option<Eq<admin, bool>>, Option<Eq<bot_account, bool>>) as Insertable<table>>::Values
type Values = <(Option<Eq<name, String>>, Option<Eq<display_name, Option<String>>>, Option<Eq<avatar, Option<DbUrl>>>, Option<Eq<banned, bool>>, Option<Eq<published, NaiveDateTime>>, Option<Eq<updated, NaiveDateTime>>, Option<Eq<actor_id, DbUrl>>, Option<Eq<bio, Option<String>>>, Option<Eq<local, bool>>, Option<Eq<private_key, Option<String>>>, Option<Eq<public_key, Option<String>>>, Option<Eq<last_refreshed_at, NaiveDateTime>>, Option<Eq<banner, Option<DbUrl>>>, Option<Eq<deleted, bool>>, Option<Eq<inbox_url, DbUrl>>, Option<Eq<shared_inbox_url, Option<DbUrl>>>, Option<Eq<matrix_user_id, Option<String>>>, Option<Eq<admin, bool>>, Option<Eq<bot_account, 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<name, &'insert String>>, Option<Eq<display_name, &'insert Option<String>>>, Option<Eq<avatar, &'insert Option<DbUrl>>>, Option<Eq<banned, &'insert bool>>, Option<Eq<published, &'insert NaiveDateTime>>, Option<Eq<updated, &'insert NaiveDateTime>>, Option<Eq<actor_id, &'insert DbUrl>>, Option<Eq<bio, &'insert Option<String>>>, Option<Eq<local, &'insert bool>>, Option<Eq<private_key, &'insert Option<String>>>, Option<Eq<public_key, &'insert Option<String>>>, Option<Eq<last_refreshed_at, &'insert NaiveDateTime>>, Option<Eq<banner, &'insert Option<DbUrl>>>, Option<Eq<deleted, &'insert bool>>, Option<Eq<inbox_url, &'insert DbUrl>>, Option<Eq<shared_inbox_url, &'insert Option<DbUrl>>>, Option<Eq<matrix_user_id, &'insert Option<String>>>, Option<Eq<admin, &'insert bool>>, Option<Eq<bot_account, &'insert bool>>) as Insertable<table>>::Values
type Values = <(Option<Eq<name, &'insert String>>, Option<Eq<display_name, &'insert Option<String>>>, Option<Eq<avatar, &'insert Option<DbUrl>>>, Option<Eq<banned, &'insert bool>>, Option<Eq<published, &'insert NaiveDateTime>>, Option<Eq<updated, &'insert NaiveDateTime>>, Option<Eq<actor_id, &'insert DbUrl>>, Option<Eq<bio, &'insert Option<String>>>, Option<Eq<local, &'insert bool>>, Option<Eq<private_key, &'insert Option<String>>>, Option<Eq<public_key, &'insert Option<String>>>, Option<Eq<last_refreshed_at, &'insert NaiveDateTime>>, Option<Eq<banner, &'insert Option<DbUrl>>>, Option<Eq<deleted, &'insert bool>>, Option<Eq<inbox_url, &'insert DbUrl>>, Option<Eq<shared_inbox_url, &'insert Option<DbUrl>>>, Option<Eq<matrix_user_id, &'insert Option<String>>>, Option<Eq<admin, &'insert bool>>, Option<Eq<bot_account, &'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 PersonForm
impl Send for PersonForm
impl Sync for PersonForm
impl Unpin for PersonForm
impl UnwindSafe for PersonForm
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