Skip to main content

ResponseValidator

Trait ResponseValidator 

Source
pub trait ResponseValidator {
    // Required method
    fn validate(&self, id: u32, budget: &mut WorkBudget) -> Result<(), Error>;
}
Expand description

Must resolve the exact nonzero metadata ID to a SUPPORTED typed response schema/profile, declared quantity/unit and explicit normalization. Unknown is never a flat response. This is a registry hook, not a default response model.

Required Methods§

Source

fn validate(&self, id: u32, budget: &mut WorkBudget) -> Result<(), Error>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§