Enum havocompare::csv::Preprocessor
source · pub enum Preprocessor {
ExtractHeaders,
DeleteColumnByNumber(usize),
DeleteColumnByName(String),
SortByColumnName(String),
SortByColumnNumber(usize),
DeleteRowByNumber(usize),
DeleteRowByRegex(String),
DeleteCellByNumber {
column: usize,
row: usize,
},
DeleteCellByName {
column: String,
row: usize,
},
}Expand description
Preprocessor options
Variants§
ExtractHeaders
Try to extract the headers from the first row - fallible if first row contains a number
DeleteColumnByNumber(usize)
Replace all fields in column by number by a deleted marker
DeleteColumnByName(String)
Replace all fields in column by name by a deleted marker
SortByColumnName(String)
Sort rows by column with given name. Fails if no headers were extracted or column name is not found, or if any row has no numbers there
SortByColumnNumber(usize)
Sort rows by column with given number. Fails if any row has no numbers there or if out of bounds.
DeleteRowByNumber(usize)
Replace all fields in row with given number by a deleted marker
DeleteRowByRegex(String)
Replace all fields in row where at least a single field matches regex by a deleted marker
DeleteCellByNumber
replace found cell using row and column index by a deleted marker
DeleteCellByName
replace found cell using column header and row index by a deleted marker
Trait Implementations§
source§impl Clone for Preprocessor
impl Clone for Preprocessor
source§fn clone(&self) -> Preprocessor
fn clone(&self) -> Preprocessor
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for Preprocessor
impl Debug for Preprocessor
source§impl<'de> Deserialize<'de> for Preprocessor
impl<'de> Deserialize<'de> for Preprocessor
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 JsonSchema for Preprocessor
impl JsonSchema for Preprocessor
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl RefUnwindSafe for Preprocessor
impl Send for Preprocessor
impl Sync for Preprocessor
impl Unpin for Preprocessor
impl UnwindSafe for Preprocessor
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