pub struct ConfigBuilder { /* private fields */ }
Expand description
Builder for Config
.
Implementations§
Source§impl ConfigBuilder
impl ConfigBuilder
pub fn case_dir(&mut self, value: String) -> &mut Self
Sourcepub fn test_case_extension(&mut self, value: String) -> &mut Self
pub fn test_case_extension(&mut self, value: String) -> &mut Self
Default value: sql
Sourcepub fn result_extension(&mut self, value: String) -> &mut Self
pub fn result_extension(&mut self, value: String) -> &mut Self
Default value: result
Sourcepub fn interceptor_prefix(&mut self, value: String) -> &mut Self
pub fn interceptor_prefix(&mut self, value: String) -> &mut Self
Default value: -- SQLNESS
Sourcepub fn env_config_file(&mut self, value: String) -> &mut Self
pub fn env_config_file(&mut self, value: String) -> &mut Self
Default value: config.toml
Sourcepub fn fail_fast(&mut self, value: bool) -> &mut Self
pub fn fail_fast(&mut self, value: bool) -> &mut Self
Fail this run as soon as one case fails if true
Sourcepub fn test_filter(&mut self, value: String) -> &mut Self
pub fn test_filter(&mut self, value: String) -> &mut Self
Test only matched testcases, default .*
Env is prepended before filename, eg {env}:{filename}
Sourcepub fn env_filter(&mut self, value: String) -> &mut Self
pub fn env_filter(&mut self, value: String) -> &mut Self
Test only matched env, default .*
Sourcepub fn follow_links(&mut self, value: bool) -> &mut Self
pub fn follow_links(&mut self, value: bool) -> &mut Self
Whether follow symbolic links when searching test case files. Defaults to “true” (follow symbolic links).
Sourcepub fn interceptor_registry(&mut self, value: Registry) -> &mut Self
pub fn interceptor_registry(&mut self, value: Registry) -> &mut Self
Interceptors used to pre-process input query and post-process query response
Trait Implementations§
Source§impl Clone for ConfigBuilder
impl Clone for ConfigBuilder
Source§fn clone(&self) -> ConfigBuilder
fn clone(&self) -> ConfigBuilder
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for ConfigBuilder
impl !RefUnwindSafe for ConfigBuilder
impl !Send for ConfigBuilder
impl !Sync for ConfigBuilder
impl Unpin for ConfigBuilder
impl !UnwindSafe for ConfigBuilder
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