pub struct ControlAct {
pub class_code: String,
pub mood_code: String,
pub code: Option<Cd>,
pub domain: Option<Element>,
}Expand description
Level 2: the control act wrapper — identifies the real-world trigger event and carries level 3, the domain payload.
Fields§
§class_code: StringAlmost always "CACT" — kept as read, not assumed, since a
nonconforming sender is something a caller may want to notice
rather than have silently papered over.
mood_code: StringAlmost always "EVN", for the same reason.
code: Option<Cd>The trigger event code — which real-world event caused this message to be sent.
domain: Option<Element>Level 3: the domain-specific payload, read as a raw element.
Its shape is defined by the interaction (interaction_id), not by
anything this crate knows in general — decode it with crate::rim
types yourself, matching what that interaction’s schema says to
expect. This crate finds it (the first element under a subject
wrapper, the common case) and stops there; see spec/index.md §3
for the exact rule and its limits.
Trait Implementations§
Source§impl Clone for ControlAct
impl Clone for ControlAct
Source§fn clone(&self) -> ControlAct
fn clone(&self) -> ControlAct
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more