mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-15 08:54:01 +00:00
Listing columns.
This commit is contained in:
parent
68edda7bf5
commit
5a33fce8bd
1 changed files with 28 additions and 28 deletions
|
@ -7,34 +7,34 @@ use serde::Serialize;
|
||||||
#[derive(Clone, Queryable, Identifiable, PartialEq, Debug, Serialize)]
|
#[derive(Clone, Queryable, Identifiable, PartialEq, Debug, Serialize)]
|
||||||
#[table_name = "user_"]
|
#[table_name = "user_"]
|
||||||
pub struct User_ {
|
pub struct User_ {
|
||||||
pub id: i32,
|
pub id: i32, // person
|
||||||
pub name: String,
|
pub name: String, // person
|
||||||
pub preferred_username: Option<String>,
|
pub preferred_username: Option<String>, // person
|
||||||
pub password_encrypted: String,
|
pub password_encrypted: String, // local_user
|
||||||
pub email: Option<String>,
|
pub email: Option<String>, // local_user
|
||||||
pub avatar: Option<String>,
|
pub avatar: Option<String>, // person
|
||||||
pub admin: bool,
|
pub admin: bool, // local_user
|
||||||
pub banned: bool,
|
pub banned: bool, // person?
|
||||||
pub published: chrono::NaiveDateTime,
|
pub published: chrono::NaiveDateTime, // person
|
||||||
pub updated: Option<chrono::NaiveDateTime>,
|
pub updated: Option<chrono::NaiveDateTime>, // person
|
||||||
pub show_nsfw: bool,
|
pub show_nsfw: bool, // local_user
|
||||||
pub theme: String,
|
pub theme: String, // local_user
|
||||||
pub default_sort_type: i16,
|
pub default_sort_type: i16, // local_user
|
||||||
pub default_listing_type: i16,
|
pub default_listing_type: i16, // local_user
|
||||||
pub lang: String,
|
pub lang: String, // local_user
|
||||||
pub show_avatars: bool,
|
pub show_avatars: bool, // local_user
|
||||||
pub send_notifications_to_email: bool,
|
pub send_notifications_to_email: bool, // local_user
|
||||||
pub matrix_user_id: Option<String>,
|
pub matrix_user_id: Option<String>, // local_user
|
||||||
pub actor_id: Url,
|
pub actor_id: Url, // person
|
||||||
pub bio: Option<String>,
|
pub bio: Option<String>, // person
|
||||||
pub local: bool,
|
pub local: bool, // person
|
||||||
pub private_key: Option<String>,
|
pub private_key: Option<String>, // person
|
||||||
pub public_key: Option<String>,
|
pub public_key: Option<String>, // person
|
||||||
pub last_refreshed_at: chrono::NaiveDateTime,
|
pub last_refreshed_at: chrono::NaiveDateTime, // person
|
||||||
pub banner: Option<String>,
|
pub banner: Option<String>, // person
|
||||||
pub deleted: bool,
|
pub deleted: bool, // local_user
|
||||||
pub inbox_url: Url,
|
pub inbox_url: Url, // person
|
||||||
pub shared_inbox_url: Option<Url>,
|
pub shared_inbox_url: Option<Url>, // person
|
||||||
}
|
}
|
||||||
|
|
||||||
/// A safe representation of user, without the sensitive info
|
/// A safe representation of user, without the sensitive info
|
||||||
|
|
Loading…
Reference in a new issue