pub struct TestServiceConfig {
pub name: String,
pub enabled: bool,
pub startup_timeout: Duration,
pub config: HashMap<String, String>,
}Expand description
测试服务配置
定义测试环境中需要启动的服务配置,支持多服务集成测试。
Fields§
§name: String服务名称
enabled: bool服务是否启用
startup_timeout: Duration服务启动超时时间
config: HashMap<String, String>服务特定配置
Implementations§
Trait Implementations§
Source§impl Clone for TestServiceConfig
impl Clone for TestServiceConfig
Source§fn clone(&self) -> TestServiceConfig
fn clone(&self) -> TestServiceConfig
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 moreAuto Trait Implementations§
impl Freeze for TestServiceConfig
impl RefUnwindSafe for TestServiceConfig
impl Send for TestServiceConfig
impl Sync for TestServiceConfig
impl Unpin for TestServiceConfig
impl UnsafeUnpin for TestServiceConfig
impl UnwindSafe for TestServiceConfig
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