pub trait FieldMigration {
// Required method
fn deprecated_fields(&self) -> Vec<DeprecatedField>;
// Provided method
fn migrate_fields(&self, value: &mut Value) -> Result<Vec<String>, String> { ... }
}Expand description
Field migration trait for automatic field transformations
Required Methods§
Sourcefn deprecated_fields(&self) -> Vec<DeprecatedField>
fn deprecated_fields(&self) -> Vec<DeprecatedField>
Get the deprecated field mappings