MCPcopy Index your code
hub / github.com/InfinitiBit/graphbit / CustomValidator

Interface CustomValidator

core/src/validation.rs:410–423  ·  view source on GitHub ↗

Trait for custom validators

Source from the content-addressed store, hash-verified

408
409/// Trait for custom validators
410pub trait CustomValidator: Send + Sync {
411 /// Validate data with custom logic
412 fn validate(
413 &self,
414 data: &str,
415 config: &HashMap<String, serde_json::Value>,
416 ) -> GraphBitResult<ValidationResult>;
417
418 /// Get validator name
419 fn name(&self) -> &str;
420
421 /// Get validator description
422 fn description(&self) -> &str;
423}

Callers

nothing calls this directly

Implementers 1

validation_tests.rstests/rust_unit_tests/validation_tests

Calls

no outgoing calls

Tested by

no test coverage detected