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
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. 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
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more