#[non_exhaustive]pub struct ValidationResponse {
pub is_valid: bool,
pub total_rows: u64,
pub valid_rows: u64,
pub invalid_rows: u64,
pub errors: Vec<RowError>,
pub scheme_violations: Vec<Map<String, Value>>,
}Expand description
POST /api/v1/ui/validate.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.is_valid: boolWhether every row passed, and every requested scheme rulebook.
total_rows: u64Rows read from the file.
valid_rows: u64Rows that passed.
invalid_rows: u64Rows that failed.
errors: Vec<RowError>One entry per field error in the rows.
scheme_violations: Vec<Map<String, Value>>Scheme-rulebook violations, when a scheme was requested.
Trait Implementations§
Source§impl Clone for ValidationResponse
impl Clone for ValidationResponse
Source§impl Debug for ValidationResponse
impl Debug for ValidationResponse
Source§impl<'de> Deserialize<'de> for ValidationResponse
impl<'de> Deserialize<'de> for ValidationResponse
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 ValidationResponse
impl PartialEq for ValidationResponse
impl StructuralPartialEq for ValidationResponse
Auto Trait Implementations§
impl Freeze for ValidationResponse
impl RefUnwindSafe for ValidationResponse
impl Send for ValidationResponse
impl Sync for ValidationResponse
impl Unpin for ValidationResponse
impl UnsafeUnpin for ValidationResponse
impl UnwindSafe for ValidationResponse
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