Struct lemmy_db_schema::source::person::PersonSafe [−][src]
pub struct PersonSafe {Show 17 fields
pub id: PersonId,
pub name: String,
pub display_name: Option<String>,
pub avatar: Option<DbUrl>,
pub banned: bool,
pub published: NaiveDateTime,
pub updated: Option<NaiveDateTime>,
pub actor_id: DbUrl,
pub bio: Option<String>,
pub local: bool,
pub banner: Option<DbUrl>,
pub deleted: bool,
pub inbox_url: DbUrl,
pub shared_inbox_url: Option<DbUrl>,
pub matrix_user_id: Option<String>,
pub admin: bool,
pub bot_account: bool,
}
Expand description
A safe representation of person, without the sensitive info
Fields
id: PersonId
name: String
display_name: Option<String>
avatar: Option<DbUrl>
banned: bool
published: NaiveDateTime
updated: Option<NaiveDateTime>
actor_id: DbUrl
bio: Option<String>
local: bool
deleted: bool
inbox_url: DbUrl
matrix_user_id: Option<String>
admin: bool
bot_account: bool
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 PersonSafe
impl Send for PersonSafe
impl Sync for PersonSafe
impl Unpin for PersonSafe
impl UnwindSafe for PersonSafe
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