pub enum CompiledRecordKind {
NotNull {
path: CompiledPath,
treat_missing_as_null: bool,
},
NotEmpty {
path: CompiledPath,
},
RegexMatch {
path: CompiledPath,
re: Regex,
},
ValueInSet {
path: CompiledPath,
values: Vec<Value>,
},
NotInSet {
path: CompiledPath,
values: Vec<Value>,
},
Compare {
path: CompiledPath,
op: CompareOp,
value: Value,
},
TypeIs {
path: CompiledPath,
expected: JsonType,
},
StringLength {
path: CompiledPath,
min: Option<usize>,
max: Option<usize>,
},
JsonSchema {
validator: Validator,
},
}Available on crate feature
quality only.Expand description
Compiled form of a per-record check, keyed by check kind.
Variants§
NotNull
NotEmpty
Fields
§
path: CompiledPathRegexMatch
ValueInSet
NotInSet
Compare
TypeIs
StringLength
JsonSchema
Available on crate feature
quality-jsonschema only.Trait Implementations§
Auto Trait Implementations§
impl Freeze for CompiledRecordKind
impl !RefUnwindSafe for CompiledRecordKind
impl Send for CompiledRecordKind
impl Sync for CompiledRecordKind
impl Unpin for CompiledRecordKind
impl UnsafeUnpin for CompiledRecordKind
impl !UnwindSafe for CompiledRecordKind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more