pub struct SchemaFilter {
pub field: String,
pub allow: Vec<Regex>,
pub deny: Vec<Regex>,
}Expand description
Filter records by matching a field value against allow/deny regex patterns.
Evaluation order:
- If
denypatterns are set and any matches → drop - If
allowpatterns are set and none matches → drop - Otherwise → keep
Fields§
§field: String§allow: Vec<Regex>§deny: Vec<Regex>Trait Implementations§
Source§impl TransformStep for SchemaFilter
impl TransformStep for SchemaFilter
Auto Trait Implementations§
impl Freeze for SchemaFilter
impl RefUnwindSafe for SchemaFilter
impl Send for SchemaFilter
impl Sync for SchemaFilter
impl Unpin for SchemaFilter
impl UnsafeUnpin for SchemaFilter
impl UnwindSafe for SchemaFilter
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