Struct lemmy_db_schema::source::community::CommunitySafe [−][src]
pub struct CommunitySafe {Show 13 fields
pub id: CommunityId,
pub name: String,
pub title: String,
pub description: Option<String>,
pub removed: bool,
pub published: NaiveDateTime,
pub updated: Option<NaiveDateTime>,
pub deleted: bool,
pub nsfw: bool,
pub actor_id: DbUrl,
pub local: bool,
pub icon: Option<DbUrl>,
pub banner: Option<DbUrl>,
}
Expand description
A safe representation of community, without the sensitive info
Fields
id: CommunityId
name: String
title: String
description: Option<String>
removed: bool
published: NaiveDateTime
updated: Option<NaiveDateTime>
deleted: bool
nsfw: bool
actor_id: DbUrl
local: bool
icon: Option<DbUrl>
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
The Rust type you’d like to map from. Read more
Auto Trait Implementations
impl RefUnwindSafe for CommunitySafe
impl Send for CommunitySafe
impl Sync for CommunitySafe
impl Unpin for CommunitySafe
impl UnwindSafe for CommunitySafe
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