pub trait FormatName {
const NAME: &'static str;
}Expand description
The name of a JSON Schema format, as it appears in a schema.
Implement it on a marker type to declare a format this crate does not
ship — pairing it with
ValidatorBuilder::format,
which supplies the check:
ⓘ
struct EmployeeId;
impl FormatName for EmployeeId { const NAME: &'static str = "employee-id"; }Required Associated Constants§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".