pub struct RedactConfigBuilder { /* private fields */ }Expand description
Builder for RedactConfig
Implementations§
Source§impl RedactConfigBuilder
impl RedactConfigBuilder
pub fn input(self, path: PathBuf) -> Self
pub fn output(self, path: Option<PathBuf>) -> Self
pub fn dialect(self, dialect: SqlDialect) -> Self
pub fn config_file(self, path: Option<PathBuf>) -> Self
pub fn null_patterns(self, patterns: Vec<String>) -> Self
pub fn hash_patterns(self, patterns: Vec<String>) -> Self
pub fn fake_patterns(self, patterns: Vec<String>) -> Self
pub fn mask_patterns(self, patterns: Vec<String>) -> Self
pub fn constant_patterns(self, patterns: Vec<String>) -> Self
pub fn seed(self, seed: Option<u64>) -> Self
pub fn locale(self, locale: String) -> Self
pub fn tables_filter(self, tables: Option<Vec<String>>) -> Self
pub fn exclude(self, exclude: Vec<String>) -> Self
pub fn strict(self, strict: bool) -> Self
pub fn progress(self, progress: bool) -> Self
pub fn dry_run(self, dry_run: bool) -> Self
Sourcepub fn build(self) -> Result<RedactConfig>
pub fn build(self) -> Result<RedactConfig>
Build the RedactConfig
Trait Implementations§
Source§impl Default for RedactConfigBuilder
impl Default for RedactConfigBuilder
Source§fn default() -> RedactConfigBuilder
fn default() -> RedactConfigBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RedactConfigBuilder
impl RefUnwindSafe for RedactConfigBuilder
impl Send for RedactConfigBuilder
impl Sync for RedactConfigBuilder
impl Unpin for RedactConfigBuilder
impl UnwindSafe for RedactConfigBuilder
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