1 2 3 4 5 6 7 8 9 10 11 12 13
//! Traits to help standardize parsers output.
use std::collections::HashMap;
/// The `Normalize` trait allow of returing the most important data from struct to be used
/// on simple data structures like CSV.
pub trait Normalize {
fn normalize(&self) -> HashMap<String, String>;
}
/// Implement this trait to generate the path from deferent structs
pub trait Path {
fn path(&self) -> Option<String>;
}