pub trait SchemaNamespaceValidator: Send + Sync {
// Required method
fn validate(&self, namespace: &str) -> AvroResult<()>;
// Provided method
fn regex(&self) -> &'static Regex { ... }
}Expand description
A trait that validates schema namespaces. To register a custom one use set_schema_namespace_validator.
Required Methods§
Sourcefn validate(&self, namespace: &str) -> AvroResult<()>
fn validate(&self, namespace: &str) -> AvroResult<()>
Validates the schema namespace or Details::InvalidNamespace if it is invalid.
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".