Struct lemmy_db_schema::source::site::Site [−][src]
pub struct Site {Show 13 fields
pub id: i32,
pub name: String,
pub sidebar: Option<String>,
pub creator_id: PersonId,
pub published: NaiveDateTime,
pub updated: Option<NaiveDateTime>,
pub enable_downvotes: bool,
pub open_registration: bool,
pub enable_nsfw: bool,
pub icon: Option<DbUrl>,
pub banner: Option<DbUrl>,
pub description: Option<String>,
pub community_creation_admin_only: bool,
}
Fields
id: i32
name: String
creator_id: PersonId
published: NaiveDateTime
updated: Option<NaiveDateTime>
enable_downvotes: bool
open_registration: bool
enable_nsfw: bool
icon: Option<DbUrl>
description: Option<String>
community_creation_admin_only: bool
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Site
impl UnwindSafe for Site
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