pub struct ServiceExpectation {
pub expected_requests: HashMap<String, usize>,
pub description: Option<String>,
}Expand description
外部服务期望配置
Fields§
§expected_requests: HashMap<String, usize>期望的请求次数映射 (路径 -> 期望次数)
description: Option<String>描述信息
Implementations§
Trait Implementations§
Source§impl Debug for ServiceExpectation
impl Debug for ServiceExpectation
Source§impl Default for ServiceExpectation
impl Default for ServiceExpectation
Source§fn default() -> ServiceExpectation
fn default() -> ServiceExpectation
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ServiceExpectation
impl RefUnwindSafe for ServiceExpectation
impl Send for ServiceExpectation
impl Sync for ServiceExpectation
impl Unpin for ServiceExpectation
impl UnsafeUnpin for ServiceExpectation
impl UnwindSafe for ServiceExpectation
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