IntoMockRow

Trait IntoMockRow 

pub trait IntoMockRow {
    // Required method
    fn into_mock_row(self) -> MockRow;
}
Expand description

A trait to get a MockRow from a type useful for testing in the MockDatabase

Required Methods§

fn into_mock_row(self) -> MockRow

The method to perform this operation

Implementations on Foreign Types§

§

impl<M, N> IntoMockRow for (M, Option<N>)
where M: ModelTrait, N: ModelTrait,

§

impl<M, N> IntoMockRow for (M, N)
where M: ModelTrait, N: ModelTrait,

§

impl<T> IntoMockRow for BTreeMap<T, Value>
where T: Into<String>,

Implementors§

§

impl IntoMockRow for MockRow

§

impl<M> IntoMockRow for M
where M: ModelTrait,