pub struct CompiledQuality {
pub record: Vec<CompiledRecordCheck>,
pub batch: Vec<CompiledBatchCheck>,
}Available on crate feature
quality only.Expand description
A fully compiled quality spec. Built once via CompiledQuality::compile.
Fields§
§record: Vec<CompiledRecordCheck>§batch: Vec<CompiledBatchCheck>Implementations§
Source§impl CompiledQuality
impl CompiledQuality
Sourcepub fn compile(spec: &QualitySpec) -> Result<Self, FaucetError>
pub fn compile(spec: &QualitySpec) -> Result<Self, FaucetError>
Compile and validate a QualitySpec. Returns FaucetError::Config
on any invalid path, regex, schema, bound, or on_failure choice.
Sourcepub fn requires_dlq(&self) -> bool
pub fn requires_dlq(&self) -> bool
True if any check would route records to the DLQ (so a DLQ sink is required). Checked by the pipeline at run start.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CompiledQuality
impl !RefUnwindSafe for CompiledQuality
impl Send for CompiledQuality
impl Sync for CompiledQuality
impl Unpin for CompiledQuality
impl UnsafeUnpin for CompiledQuality
impl !UnwindSafe for CompiledQuality
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