pub struct TestEnvConfig {
pub name: String,
pub enable_logging: bool,
pub enable_tracing: bool,
pub default_timeout: Duration,
pub custom: HashMap<String, String>,
}Expand description
测试环境配置
Fields§
§name: String环境名称
enable_logging: bool是否启用日志
enable_tracing: bool是否启用追踪
default_timeout: Duration超时时间
custom: HashMap<String, String>自定义配置
Implementations§
Source§impl TestEnvConfig
impl TestEnvConfig
Sourcepub fn with_logging(self, enable: bool) -> Self
pub fn with_logging(self, enable: bool) -> Self
启用日志
Sourcepub fn with_tracing(self, enable: bool) -> Self
pub fn with_tracing(self, enable: bool) -> Self
启用追踪
Trait Implementations§
Source§impl Clone for TestEnvConfig
impl Clone for TestEnvConfig
Source§fn clone(&self) -> TestEnvConfig
fn clone(&self) -> TestEnvConfig
Returns a duplicate 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 moreSource§impl Debug for TestEnvConfig
impl Debug for TestEnvConfig
Auto Trait Implementations§
impl Freeze for TestEnvConfig
impl RefUnwindSafe for TestEnvConfig
impl Send for TestEnvConfig
impl Sync for TestEnvConfig
impl Unpin for TestEnvConfig
impl UnsafeUnpin for TestEnvConfig
impl UnwindSafe for TestEnvConfig
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