relay_event_normalization::replay

Function validate

source
pub fn validate(replay: &Replay) -> Result<(), ReplayError>
Expand description

Checks if the Replay event is structurally valid.

Returns Ok(()), if the Replay is valid and can be normalized. Otherwise, returns Err(ReplayError::InvalidPayload) describing the missing or invalid data.