pub struct ResolvedDomainObject {
pub api_url: Option<String>,
pub color: Value,
pub image_url: Option<String>,
pub infos: Vec<String>,
pub initials: Option<String>,
pub extra: Map<String, Value>,
}Expand description
A compact object returned by the registered domain resolver. Match results by domainType and domainIdentifier, not by array index.
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.
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.
extra: Map<String, Value>Fields not described by the spec, e.g. instance-specific DB fields.
Trait Implementations§
Source§impl Clone for ResolvedDomainObject
impl Clone for ResolvedDomainObject
Source§impl Debug for ResolvedDomainObject
impl Debug for ResolvedDomainObject
Source§impl Default for ResolvedDomainObject
impl Default for ResolvedDomainObject
Source§impl<'de> Deserialize<'de> for ResolvedDomainObject
impl<'de> Deserialize<'de> for ResolvedDomainObject
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 ResolvedDomainObject
impl PartialEq for ResolvedDomainObject
Source§impl Serialize for ResolvedDomainObject
impl Serialize for ResolvedDomainObject
impl StructuralPartialEq for ResolvedDomainObject
Auto Trait Implementations§
impl Freeze for ResolvedDomainObject
impl RefUnwindSafe for ResolvedDomainObject
impl Send for ResolvedDomainObject
impl Sync for ResolvedDomainObject
impl Unpin for ResolvedDomainObject
impl UnsafeUnpin for ResolvedDomainObject
impl UnwindSafe for ResolvedDomainObject
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