pub struct SafetyExpectation {
pub status: Option<String>,
pub error: Option<String>,
pub receipt_status: Option<String>,
pub effects: u32,
pub restores: u32,
pub replay_effects: Option<u32>,
}Expand description
Expected effects, restores, and status for a SafetyScenario.
Fields§
§status: Option<String>Expected session status, when asserted.
error: Option<String>Expected error, when asserted.
receipt_status: Option<String>Expected receipt status, when asserted.
effects: u32Expected number of physical effects.
restores: u32Expected number of restores/rollbacks.
replay_effects: Option<u32>Expected number of effects on replay, when asserted.
Trait Implementations§
Source§impl Clone for SafetyExpectation
impl Clone for SafetyExpectation
Source§fn clone(&self) -> SafetyExpectation
fn clone(&self) -> SafetyExpectation
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 SafetyExpectation
impl Debug for SafetyExpectation
Source§impl<'de> Deserialize<'de> for SafetyExpectation
impl<'de> Deserialize<'de> for SafetyExpectation
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SafetyExpectation
impl PartialEq for SafetyExpectation
Source§impl Serialize for SafetyExpectation
impl Serialize for SafetyExpectation
impl StructuralPartialEq for SafetyExpectation
Auto Trait Implementations§
impl Freeze for SafetyExpectation
impl RefUnwindSafe for SafetyExpectation
impl Send for SafetyExpectation
impl Sync for SafetyExpectation
impl Unpin for SafetyExpectation
impl UnsafeUnpin for SafetyExpectation
impl UnwindSafe for SafetyExpectation
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