pub enum StammdatenCommand {
Receive {
mrid: String,
sender: String,
receiver: String,
doc_type: String,
anlagen_count: u32,
received_at: String,
},
SendAcknowledgement {
ack_mrid: String,
},
Forward {
upstream_mrid: String,
},
TimeoutExpired {
deadline_id: DeadlineId,
label: Box<str>,
},
}Expand description
Commands for the Stammdaten workflow.
All domain values are pre-extracted by the transport layer before
construction. Workflow::handle is pure — no I/O.
Variants§
Receive
Inbound Stammdaten document received and parsed by the transport layer.
Fields
SendAcknowledgement
AcknowledgementDocument dispatched to the sender.
The caller is responsible for building and enqueuing the outbound XML via the outbox before issuing this command.
Forward
Enriched Stammdaten forwarded to ÜNB (VNB role only).
The caller is responsible for building and enqueuing the upstream XML.
TimeoutExpired
A registered deadline fired.
Fields
§
deadline_id: DeadlineIdUnique ID of the expired deadline.
Trait Implementations§
Source§impl Clone for StammdatenCommand
impl Clone for StammdatenCommand
Source§fn clone(&self) -> StammdatenCommand
fn clone(&self) -> StammdatenCommand
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl CommandPayload for StammdatenCommand
Auto Trait Implementations§
impl Freeze for StammdatenCommand
impl RefUnwindSafe for StammdatenCommand
impl Send for StammdatenCommand
impl Sync for StammdatenCommand
impl Unpin for StammdatenCommand
impl UnsafeUnpin for StammdatenCommand
impl UnwindSafe for StammdatenCommand
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