pub struct CypherFixtureCheck {
pub name: String,
pub setup_queries: Vec<CypherFixtureStatement>,
pub statement: CypherFixtureStatement,
pub expected_rows: ExpectedRows,
pub expected_error: Option<ExpectedErrorClass>,
pub effect_query: Option<CypherFixtureStatement>,
pub effect_expected_rows: Option<ExpectedRows>,
pub expected_plan_contains: Vec<String>,
pub tolerance: CompatibilityTolerance,
pub execution_mode: CypherExecutionMode,
}Fields§
§name: String§setup_queries: Vec<CypherFixtureStatement>§statement: CypherFixtureStatement§expected_rows: ExpectedRows§expected_error: Option<ExpectedErrorClass>§effect_query: Option<CypherFixtureStatement>§effect_expected_rows: Option<ExpectedRows>§expected_plan_contains: Vec<String>§tolerance: CompatibilityTolerance§execution_mode: CypherExecutionModeImplementations§
Source§impl CypherFixtureCheck
impl CypherFixtureCheck
pub fn expect_rows( name: impl Into<String>, statement: CypherFixtureStatement, expected_rows: ExpectedRows, ) -> CypherFixtureCheck
pub fn expect_error( name: impl Into<String>, statement: CypherFixtureStatement, expected_error: ExpectedErrorClass, ) -> CypherFixtureCheck
pub fn with_plan_contains( self, expected_plan_contains: Vec<String>, ) -> CypherFixtureCheck
pub fn with_tolerance( self, tolerance: CompatibilityTolerance, ) -> CypherFixtureCheck
pub fn with_session_execution(self) -> CypherFixtureCheck
pub fn with_setup_query( self, setup_query: CypherFixtureStatement, ) -> CypherFixtureCheck
pub fn with_effect_query( self, effect_query: CypherFixtureStatement, effect_expected_rows: ExpectedRows, ) -> CypherFixtureCheck
Trait Implementations§
Source§impl Clone for CypherFixtureCheck
impl Clone for CypherFixtureCheck
Source§fn clone(&self) -> CypherFixtureCheck
fn clone(&self) -> CypherFixtureCheck
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CypherFixtureCheck
impl Debug for CypherFixtureCheck
Source§impl PartialEq for CypherFixtureCheck
impl PartialEq for CypherFixtureCheck
impl StructuralPartialEq for CypherFixtureCheck
Auto Trait Implementations§
impl Forget for CypherFixtureCheck
impl Freeze for CypherFixtureCheck
impl Move for CypherFixtureCheck
impl RefUnwindSafe for CypherFixtureCheck
impl Send for CypherFixtureCheck
impl Sync for CypherFixtureCheck
impl Unpin for CypherFixtureCheck
impl UnsafeUnpin for CypherFixtureCheck
impl UnwindSafe for CypherFixtureCheck
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more