Skip to main content

validate_log_record

Function validate_log_record 

Source
pub fn validate_log_record(
    value: &Value,
    limits: &Limits,
) -> Result<(), ValidationError>
Expand description

Validate an untrusted log record against limits.

Mirrors crate::validate_snapshot: projected first, then measured against max_log_record_bytes, then checked field by field. Never panics.

§Errors

Returns a ValidationError whose code matches the reference implementation’s.