pub struct SignalResult {
pub label: String,
pub passed: bool,
pub pending: bool,
pub comparison: Option<ComparisonMetrics>,
pub error: Option<String>,
}Expand description
Result for a single signal within a test.
Fields§
§label: String§passed: bool§pending: booltrue when this signal’s golden is missing and the test is pending.
comparison: Option<ComparisonMetrics>§error: Option<String>Implementations§
Source§impl SignalResult
Wrapper to make SignalResult from comparison.
impl SignalResult
Wrapper to make SignalResult from comparison.
pub fn from_comparison( label: String, comparison: ComparisonResult, passed: bool, ) -> Self
pub fn from_error(label: String, error: String) -> Self
Trait Implementations§
Source§impl Clone for SignalResult
impl Clone for SignalResult
Source§fn clone(&self) -> SignalResult
fn clone(&self) -> SignalResult
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 SignalResult
impl Debug for SignalResult
Source§impl<'de> Deserialize<'de> for SignalResult
impl<'de> Deserialize<'de> for SignalResult
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 SignalResult
impl RefUnwindSafe for SignalResult
impl Send for SignalResult
impl Sync for SignalResult
impl Unpin for SignalResult
impl UnsafeUnpin for SignalResult
impl UnwindSafe for SignalResult
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