pub fn encode_submit_order(
message: &SubmitOrder,
) -> Result<EncodedPayload, EncodeError>Expand description
Encodes a [SubmitOrder] command into canonical bytes plus its client_order_id index.
ยงErrors
Returns EncodeError::Serialize when MessagePack rejects the payload (a malformed
value the type system should make unrepresentable; surfaced rather than swallowed
because the audit contract refuses to drop captured commands).