Skip to main content

FieldMapper

Trait FieldMapper 

Source
pub trait FieldMapper {
    // Required method
    fn map<'a>(&self, field: &'a str) -> Cow<'a, str>;
}
Expand description

Transforms a logical field name to its storage representation. Implement this in drivers to handle JSONB paths, column aliases, etc.

Required Methods§

Source

fn map<'a>(&self, field: &'a str) -> Cow<'a, str>

Implementors§