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 !RefUnwindSafe for CompiledRecordKind
impl !UnwindSafe for CompiledRecordKind
impl Freeze for CompiledRecordKind
impl Send for CompiledRecordKind
impl Sync for CompiledRecordKind
impl Unpin for CompiledRecordKind
impl UnsafeUnpin 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
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request