Skip to main content

encode_account_state

Function encode_account_state 

Source
pub fn encode_account_state(
    message: &AccountState,
) -> Result<EncodedPayload, EncodeError>
Expand description

Encodes an [AccountState] into canonical bytes with no sidecar indices.

AccountState carries AccountId and event_id (UUID4); neither matches an IndexKind variant today, so the encoder emits no sidecar keys and forensics scans rely on sequential range over seq. This mirrors the [PositionStatusReport] precedent.

ยงErrors

Returns EncodeError::Serialize when MessagePack rejects the payload.