Struct csv_pipeline::Transformer
source · pub struct Transformer { /* private fields */ }
Expand description
A struct for building a Transform
, which you can use with Pipeline::transform_into
.
Implementations§
source§impl Transformer
impl Transformer
pub fn new(col_name: &str) -> Self
sourcepub fn from_col(self, col_name: &str) -> Self
pub fn from_col(self, col_name: &str) -> Self
Specify which column the transform should be based on
sourcepub fn keep_unique(self) -> Box<dyn Transform>
pub fn keep_unique(self) -> Box<dyn Transform>
Keep the unique values from this column