pub struct MockTable {
pub name: String,
pub rows: Vec<BTreeMap<String, String>>,
}Expand description
A mock table definition with column data for test substitution.
Mock tables generate SQL of the form:
SELECT 'val1' AS col1, 'val2' AS col2
UNION ALL
SELECT 'val3', 'val4'Fields§
§name: StringThe name of the table being mocked.
rows: Vec<BTreeMap<String, String>>Rows of column name → value mappings.
Implementations§
Trait Implementations§
impl StructuralPartialEq for MockTable
Auto Trait Implementations§
impl Freeze for MockTable
impl RefUnwindSafe for MockTable
impl Send for MockTable
impl Sync for MockTable
impl Unpin for MockTable
impl UnsafeUnpin for MockTable
impl UnwindSafe for MockTable
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