Trait for custom validators
| 408 | |
| 409 | /// Trait for custom validators |
| 410 | pub 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected