Struct lemmy_db_schema::source::person::Person
source · pub struct Person {Show 21 fields
pub id: PersonId,
pub name: String,
pub display_name: Option<String>,
pub avatar: Option<DbUrl>,
pub banned: bool,
pub published: DateTime<Utc>,
pub updated: Option<DateTime<Utc>>,
pub actor_id: DbUrl,
pub bio: Option<String>,
pub local: bool,
pub private_key: Option<String>,
pub public_key: String,
pub last_refreshed_at: DateTime<Utc>,
pub banner: Option<DbUrl>,
pub deleted: bool,
pub inbox_url: DbUrl,
pub shared_inbox_url: Option<DbUrl>,
pub matrix_user_id: Option<String>,
pub bot_account: bool,
pub ban_expires: Option<DateTime<Utc>>,
pub instance_id: InstanceId,
}
Expand description
A person.
Fields§
§id: PersonId
§name: String
§display_name: Option<String>
A shorter display name.
avatar: Option<DbUrl>
A URL for an avatar.
banned: bool
Whether the person is banned.
published: DateTime<Utc>
§updated: Option<DateTime<Utc>>
§actor_id: DbUrl
The federated actor_id.
bio: Option<String>
An optional bio, in markdown.
local: bool
Whether the person is local to our site.
private_key: Option<String>
§public_key: String
§last_refreshed_at: DateTime<Utc>
A URL for a banner.
deleted: bool
Whether the person is deleted.
inbox_url: DbUrl
§matrix_user_id: Option<String>
A matrix id, usually given an @person:matrix.org
bot_account: bool
Whether the person is a bot account.
ban_expires: Option<DateTime<Utc>>
When their ban, if it exists, expires, if at all.
instance_id: InstanceId
Trait Implementations§
source§impl<'de> Deserialize<'de> for Person
impl<'de> Deserialize<'de> for Person
source§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
source§impl PartialEq for Person
impl PartialEq for Person
impl Eq for Person
impl StructuralEq for Person
impl StructuralPartialEq for Person
Auto Trait Implementations§
impl RefUnwindSafe for Person
impl Send for Person
impl Sync for Person
impl Unpin for Person
impl UnwindSafe for Person
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more