pub struct CheckResult {
pub check: String,
pub column: Option<String>,
pub status: Status,
pub observed: Option<String>,
pub expected: Option<String>,
pub message: Option<String>,
pub failing_rows: Option<FailingRows>,
}Expand description
One check’s result.
Fields§
§check: StringThe check’s name (not_null, unique, row_count, …).
column: Option<String>The column it looked at, if one.
status: StatusHow it ended.
observed: Option<String>What it found.
expected: Option<String>What it wanted.
message: Option<String>Anything else to say (an error’s cause).
failing_rows: Option<FailingRows>A sample of the rows it failed on.
Implementations§
Source§impl CheckResult
impl CheckResult
Sourcepub fn new(check: impl Into<String>, status: Status) -> Self
pub fn new(check: impl Into<String>, status: Status) -> Self
A result with nothing observed or expected yet.
Sourcepub fn failing_rows(self, rows: FailingRows) -> Self
pub fn failing_rows(self, rows: FailingRows) -> Self
A sample of the failing rows.
Trait Implementations§
Source§impl Clone for CheckResult
impl Clone for CheckResult
Source§impl Debug for CheckResult
impl Debug for CheckResult
Source§impl<'de> Deserialize<'de> for CheckResult
impl<'de> Deserialize<'de> for CheckResult
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 CheckResult
impl PartialEq for CheckResult
Source§impl Serialize for CheckResult
impl Serialize for CheckResult
impl StructuralPartialEq for CheckResult
Auto Trait Implementations§
impl Freeze for CheckResult
impl RefUnwindSafe for CheckResult
impl Send for CheckResult
impl Sync for CheckResult
impl Unpin for CheckResult
impl UnsafeUnpin for CheckResult
impl UnwindSafe for CheckResult
Blanket Implementations§
impl<T> Allocation for T
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