pub struct ComparisonRowMetadataError {
pub family: ComparisonRowKind,
pub metadata_index: usize,
pub expected_count: usize,
pub actual_count: usize,
pub expected_kind: ComparisonRowKind,
pub actual_kind: Option<String>,
}Expand description
Error returned when result rows and finality metadata do not share the canonical count/kind layout.
Fields§
§family: ComparisonRowKindRow family being validated.
metadata_index: usizeAbsolute index in ComparisonResult::row_finalities where validation failed.
expected_count: usizeNumber of metadata records expected for the family.
actual_count: usizeNumber of metadata records observed in the family’s layout span.
expected_kind: ComparisonRowKindRow kind expected at the failing metadata index.
actual_kind: Option<String>Raw row-kind label found at the index, or None when metadata is absent.
Trait Implementations§
Source§impl Clone for ComparisonRowMetadataError
impl Clone for ComparisonRowMetadataError
Source§impl Debug for ComparisonRowMetadataError
impl Debug for ComparisonRowMetadataError
Source§impl Display for ComparisonRowMetadataError
impl Display for ComparisonRowMetadataError
impl Eq for ComparisonRowMetadataError
Source§impl Error for ComparisonRowMetadataError
impl Error for ComparisonRowMetadataError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<ComparisonRowMetadataError> for ComparisonExportError
impl From<ComparisonRowMetadataError> for ComparisonExportError
Source§fn from(source: ComparisonRowMetadataError) -> Self
fn from(source: ComparisonRowMetadataError) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for ComparisonRowMetadataError
Auto Trait Implementations§
impl Freeze for ComparisonRowMetadataError
impl RefUnwindSafe for ComparisonRowMetadataError
impl Send for ComparisonRowMetadataError
impl Sync for ComparisonRowMetadataError
impl Unpin for ComparisonRowMetadataError
impl UnsafeUnpin for ComparisonRowMetadataError
impl UnwindSafe for ComparisonRowMetadataError
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