pub trait NodeValidator: Send + Sync {
// Required methods
fn validate(&self, raw_node: &str) -> ValidationResult;
fn verify_psi(&self, node: &SttpNode) -> bool;
}Expand description
Validator contract for raw STTP node payloads.
Required Methods§
Sourcefn validate(&self, raw_node: &str) -> ValidationResult
fn validate(&self, raw_node: &str) -> ValidationResult
Validate structural and semantic correctness of raw STTP text.
Sourcefn verify_psi(&self, node: &SttpNode) -> bool
fn verify_psi(&self, node: &SttpNode) -> bool
Verify PSI coherence between fields and computed values.