Skip to main content

encode_position_status_report

Function encode_position_status_report 

Source
pub fn encode_position_status_report(
    report: &PositionStatusReport,
) -> Result<EncodedPayload, EncodeError>
Expand description

Encodes a [PositionStatusReport] into canonical bytes with no sidecar indices.

PositionStatusReport carries only AccountId, InstrumentId, and PositionId; none of those have a matching IndexKind variant today. Capture with no sidecar indices so the entry is forensics-discoverable by sequential scan rather than synthesising an index against an identifier the reader cannot query.

ยงErrors

Returns EncodeError::Serialize when MessagePack rejects the payload.