Skip to main content

NodeValidator

Trait NodeValidator 

Source
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§

Source

fn validate(&self, raw_node: &str) -> ValidationResult

Validate structural and semantic correctness of raw STTP text.

Source

fn verify_psi(&self, node: &SttpNode) -> bool

Verify PSI coherence between fields and computed values.

Implementors§