Skip to main content

config_constructor_parts_with_renames

Function config_constructor_parts_with_renames 

Source
pub fn config_constructor_parts_with_renames(
    fields: &[FieldDef],
    type_mapper: &dyn Fn(&TypeRef) -> String,
    option_duration_on_defaults: bool,
    field_renames: Option<&HashMap<String, String>>,
) -> (String, String, String)
Expand description

Like config_constructor_parts_with_options but with field renames for keyword escaping.