pub struct InboundErpCommand {
pub idempotency_key: String,
pub tenant_id: TenantId,
pub payload_schema: String,
pub payload: Value,
}Expand description
A BO4E business object received from the ERP, intended to trigger a mako process.
mako-engine maps the BO4E payload to an internal Command via the
domain crate’s command mapper.
Fields§
§idempotency_key: StringStable dedup key — forwarded to InboxStore::accept.
The ERP must supply a stable, unique identifier per command so that retransmissions do not double-execute the workflow.
tenant_id: TenantIdTenant (operator GLN) that owns the target process.
payload_schema: StringBO4E JSON Schema URL — identifies the object type without inspecting
payload.
Example:
"https://raw.githubusercontent.com/BO4E/BO4E-Schemas/v202501.0.0/src/bo4e_schemas/bo/Vertrag.json"
payload: ValueBO4E-typed JSON payload. mako-engine maps this to an internal
Command via the registered domain command mapper.
Trait Implementations§
Source§impl Clone for InboundErpCommand
impl Clone for InboundErpCommand
Source§fn clone(&self) -> InboundErpCommand
fn clone(&self) -> InboundErpCommand
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 moreSource§impl Debug for InboundErpCommand
impl Debug for InboundErpCommand
Source§impl<'de> Deserialize<'de> for InboundErpCommand
impl<'de> Deserialize<'de> for InboundErpCommand
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
Auto Trait Implementations§
impl Freeze for InboundErpCommand
impl RefUnwindSafe for InboundErpCommand
impl Send for InboundErpCommand
impl Sync for InboundErpCommand
impl Unpin for InboundErpCommand
impl UnsafeUnpin for InboundErpCommand
impl UnwindSafe for InboundErpCommand
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