pub struct DomainObjectPerson {
pub api_url: String,
pub color: Value,
pub domain_identifier: String,
pub image_url: Option<String>,
pub infos: Vec<String>,
pub initials: Option<String>,
pub title: String,
pub domain_attributes: DomainObjectPersonDomainAttributes,
pub domain_type: String,
pub frontend_url: String,
pub icon: String,
pub extra: Map<String, Value>,
}Expand description
Person as Domain Object
Fields§
§api_url: String§color: ValueOptional display color.
Allowed values: accent, amber, basic, blue, constructive, critical, cyan, destructive, emerald, error, fuchsia, gray, green, indigo, info, lime, magic, orange, pink, purple, red, rose, sky, success, teal, violet, warning, yellow.
domain_identifier: StringOpaque identifier within the domain; do not assume that every domain uses a numeric ID.
image_url: Option<String>Optional image URL.
infos: Vec<String>§initials: Option<String>Optional initials for an avatar fallback.
title: StringDisplay title of the referenced object.
domain_attributes: DomainObjectPersonDomainAttributes§domain_type: StringAllowed values: person.
frontend_url: String§icon: Stringuser for an ordinary person; user-shield for a censored person placeholder.
Allowed values: user, user-shield.
extra: Map<String, Value>Fields not described by the spec, e.g. instance-specific DB fields.
Trait Implementations§
Source§impl Clone for DomainObjectPerson
impl Clone for DomainObjectPerson
Source§impl Debug for DomainObjectPerson
impl Debug for DomainObjectPerson
Source§impl Default for DomainObjectPerson
impl Default for DomainObjectPerson
Source§impl<'de> Deserialize<'de> for DomainObjectPerson
impl<'de> Deserialize<'de> for DomainObjectPerson
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 DomainObjectPerson
impl PartialEq for DomainObjectPerson
Source§impl Serialize for DomainObjectPerson
impl Serialize for DomainObjectPerson
impl StructuralPartialEq for DomainObjectPerson
Auto Trait Implementations§
impl Freeze for DomainObjectPerson
impl RefUnwindSafe for DomainObjectPerson
impl Send for DomainObjectPerson
impl Sync for DomainObjectPerson
impl Unpin for DomainObjectPerson
impl UnsafeUnpin for DomainObjectPerson
impl UnwindSafe for DomainObjectPerson
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