pub struct CheckpointResult {
pub passed: bool,
pub checkpoint: Checkpoint,
pub actual_value: Option<String>,
pub duration_ms: u64,
pub error: Option<String>,
}Expand description
Result of a checkpoint verification.
Fields§
§passed: boolWhether the checkpoint passed.
checkpoint: CheckpointThe checkpoint that was verified.
actual_value: Option<String>Actual value observed (if applicable).
duration_ms: u64Duration in milliseconds.
error: Option<String>Error message if failed.
Implementations§
Source§impl CheckpointResult
impl CheckpointResult
Sourcepub fn passed(checkpoint: Checkpoint, duration_ms: u64) -> Self
pub fn passed(checkpoint: Checkpoint, duration_ms: u64) -> Self
Create a passed result.
Sourcepub fn failed(
checkpoint: Checkpoint,
error: impl Into<String>,
duration_ms: u64,
) -> Self
pub fn failed( checkpoint: Checkpoint, error: impl Into<String>, duration_ms: u64, ) -> Self
Create a failed result.
Sourcepub fn with_actual(self, value: impl Into<String>) -> Self
pub fn with_actual(self, value: impl Into<String>) -> Self
Set actual value.
Trait Implementations§
Source§impl Clone for CheckpointResult
impl Clone for CheckpointResult
Source§fn clone(&self) -> CheckpointResult
fn clone(&self) -> CheckpointResult
Returns a duplicate of the value. Read more
1.0.0 · 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 CheckpointResult
impl Debug for CheckpointResult
Source§impl<'de> Deserialize<'de> for CheckpointResult
impl<'de> Deserialize<'de> for CheckpointResult
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
Auto Trait Implementations§
impl Freeze for CheckpointResult
impl RefUnwindSafe for CheckpointResult
impl Send for CheckpointResult
impl Sync for CheckpointResult
impl Unpin for CheckpointResult
impl UnwindSafe for CheckpointResult
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