pub trait FieldMapper {
fn map<'a>(&self, field: &'a str) -> std::borrow::Cow<'a, str>;
}
#[derive(Debug, Clone, Default)]
pub struct IdentityMapper;
impl FieldMapper for IdentityMapper {
fn map<'a>(&self, field: &'a str) -> std::borrow::Cow<'a, str> {
std::borrow::Cow::Borrowed(field)
}
}