pub struct DomainObjectAction {
pub api_url: Option<String>,
pub color: Value,
pub domain_identifier: String,
pub image_url: Option<String>,
pub infos: Option<Vec<String>>,
pub initials: Option<String>,
pub title: String,
pub domain_attributes: DomainObjectActionDomainAttributes,
pub domain_type: String,
pub frontend_url: Value,
pub icon: String,
pub extra: Map<String, Value>,
}Expand description
Action as Domain Object
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: Option<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: DomainObjectActionDomainAttributes§domain_type: StringAllowed values: action.
frontend_url: Value§icon: String§extra: Map<String, Value>Fields not described by the spec, e.g. instance-specific DB fields.
Trait Implementations§
Source§impl Clone for DomainObjectAction
impl Clone for DomainObjectAction
Source§impl Debug for DomainObjectAction
impl Debug for DomainObjectAction
Source§impl Default for DomainObjectAction
impl Default for DomainObjectAction
Source§impl<'de> Deserialize<'de> for DomainObjectAction
impl<'de> Deserialize<'de> for DomainObjectAction
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 DomainObjectAction
impl PartialEq for DomainObjectAction
Source§impl Serialize for DomainObjectAction
impl Serialize for DomainObjectAction
impl StructuralPartialEq for DomainObjectAction
Auto Trait Implementations§
impl Freeze for DomainObjectAction
impl RefUnwindSafe for DomainObjectAction
impl Send for DomainObjectAction
impl Sync for DomainObjectAction
impl Unpin for DomainObjectAction
impl UnsafeUnpin for DomainObjectAction
impl UnwindSafe for DomainObjectAction
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