pub struct DomainObjectRole {
pub api_url: Option<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: BTreeMap<String, Value>,
pub domain_type: String,
pub frontend_url: String,
pub icon: String,
pub extra: Map<String, Value>,
}Expand description
Compact display reference returned for responseFormat=domainObject. domainIdentifier is the role ID as a string, title is the stored role name, and infos contains the translated group-type name. apiUrl, imageUrl, color and initials are null.
Fields§
§api_url: Option<String>URL for the full API resource, if available. Some legacy domain implementations produce inconsistent URLs.
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>Additional localized display lines; not structured resource fields.
initials: Option<String>Optional initials for an avatar fallback.
title: StringDisplay title of the referenced object.
domain_attributes: BTreeMap<String, Value>Empty object; roles do not expose additional domain attributes.
domain_type: StringAllowed values: role.
frontend_url: StringAbsolute link to this role in the group-type settings.
icon: StringIcon identifying a leader or participant role.
Allowed values: id-badge, user.
extra: Map<String, Value>Fields not described by the spec, e.g. instance-specific DB fields.