Skip to main content

validate_pix_reconstructor_config

Function validate_pix_reconstructor_config 

Source
fn validate_pix_reconstructor_config(
    cfg: &PixReconstructorConfig,
) -> Result<(), ValidationError>
Expand description

Rejects a reconstructor configuration that SsaReconstructorConfig itself would reject.

The mirror below deliberately carries no range attributes of its own. Every bound on those seven fields is a property of the reconstructor, not of this crate, so the protocol type stays the single source of truth for them and this delegates rather than restating. A restated range is simply a second place to forget when the first one moves.

validator schema functions return one [ValidationError], so the inner [ValidationErrors] is folded into its message — validate_incoming_session_pix_config above is the existing precedent in this file for a hand-written check that reaches into another crate.