#[non_exhaustive]pub enum ValidationIssue {
MissingColumn(String),
TypeMismatch {
name: String,
expected: ColumnType,
actual: ColumnType,
},
OutOfRange {
name: String,
row: usize,
value: f64,
},
Null {
name: String,
row: usize,
},
UnitMismatch {
name: String,
expected: String,
actual: Option<String>,
},
}Available on crate feature
data only.Expand description
One failed validation.
§Example
use crisol_core::data::ValidationIssue;
let issue = ValidationIssue::MissingColumn("v".to_owned());Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
MissingColumn(String)
The column is missing.
TypeMismatch
The column has another type.
OutOfRange
A numeric value is outside the rule.
Null
A null was found in a non-null column.
UnitMismatch
The unit does not match.
Trait Implementations§
Source§impl Clone for ValidationIssue
impl Clone for ValidationIssue
Source§impl Debug for ValidationIssue
impl Debug for ValidationIssue
Source§impl<'de> Deserialize<'de> for ValidationIssue
impl<'de> Deserialize<'de> for ValidationIssue
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 ValidationIssue
impl PartialEq for ValidationIssue
Source§impl Serialize for ValidationIssue
impl Serialize for ValidationIssue
impl StructuralPartialEq for ValidationIssue
Auto Trait Implementations§
impl Forget for ValidationIssue
impl Freeze for ValidationIssue
impl Move for ValidationIssue
impl RefUnwindSafe for ValidationIssue
impl Send for ValidationIssuewhere
RawVecInner: Send,
impl Sync for ValidationIssuewhere
RawVecInner: Sync,
impl Unpin for ValidationIssue
impl UnsafeUnpin for ValidationIssue
impl UnwindSafe for ValidationIssuewhere
RawVecInner: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more