pub struct ColumnLog {
pub name: String,
pub invalid_count: i32,
pub max_invalid: Option<String>,
pub min_invalid: Option<String>,
}Expand description
Holds data on the invalid count and max and min invalid string values (calculated by String comparison) found in that column.
§Examples
use csv_log_cleaner::ColumnLog;
let date_of_birth_column_log = ColumnLog {
name: "DATE_OF_BIRTH".to_string(),
invalid_count: 2,
max_invalid: Some("2444-89-01".to_string()),
min_invalid: Some("2004-31-01".to_string()),
};Fields§
§name: String§invalid_count: i32§max_invalid: Option<String>§min_invalid: Option<String>Trait Implementations§
Source§impl<'de> Deserialize<'de> for ColumnLog
impl<'de> Deserialize<'de> for ColumnLog
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
impl Eq for ColumnLog
impl StructuralPartialEq for ColumnLog
Auto Trait Implementations§
impl Freeze for ColumnLog
impl RefUnwindSafe for ColumnLog
impl Send for ColumnLog
impl Sync for ColumnLog
impl Unpin for ColumnLog
impl UnwindSafe for ColumnLog
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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