pub struct RedactConfig {
pub input: PathBuf,
pub output: Option<PathBuf>,
pub dialect: SqlDialect,
pub rules: Vec<Rule>,
pub default_strategy: StrategyKind,
pub seed: Option<u64>,
pub locale: String,
pub tables_filter: Option<Vec<String>>,
pub exclude: Vec<String>,
pub strict: bool,
pub progress: bool,
pub dry_run: bool,
}Expand description
Runtime configuration for redaction
Fields§
§input: PathBufInput SQL file
output: Option<PathBuf>Output SQL file (None for stdout)
dialect: SqlDialectSQL dialect
rules: Vec<Rule>Redaction rules
default_strategy: StrategyKindDefault strategy for unmatched columns
seed: Option<u64>Random seed for reproducibility
locale: StringLocale for fake data
tables_filter: Option<Vec<String>>Tables to include (None = all)
exclude: Vec<String>Tables to exclude
strict: boolFail on warnings
progress: boolShow progress
dry_run: boolDry run mode
Implementations§
Source§impl RedactConfig
impl RedactConfig
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RedactConfig
impl RefUnwindSafe for RedactConfig
impl Send for RedactConfig
impl Sync for RedactConfig
impl Unpin for RedactConfig
impl UnwindSafe for RedactConfig
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> 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 more