pub struct DatabaseExpectation {
pub expected_queries: HashMap<String, usize>,
pub description: Option<String>,
}Expand description
数据库 Mock 数据库
Fields§
§expected_queries: HashMap<String, usize>期望的查询次数映射 (查询名称 -> 期望次数)
description: Option<String>描述信息
Implementations§
Trait Implementations§
Source§impl Debug for DatabaseExpectation
impl Debug for DatabaseExpectation
Source§impl Default for DatabaseExpectation
impl Default for DatabaseExpectation
Source§fn default() -> DatabaseExpectation
fn default() -> DatabaseExpectation
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DatabaseExpectation
impl RefUnwindSafe for DatabaseExpectation
impl Send for DatabaseExpectation
impl Sync for DatabaseExpectation
impl Unpin for DatabaseExpectation
impl UnsafeUnpin for DatabaseExpectation
impl UnwindSafe for DatabaseExpectation
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