pub fn resolve_index_fields(name: &str, model: &ModelRef) -> Option<Vec<ScalarFieldRef>> {
    model
        .unique_indexes()
        .into_iter()
        .find(|index| schema_builder::compound_index_field_name(index) == name)
        .map(|index| index.fields())
}
/// Attempts to match a given name to the (schema) name of a compound indexes on the model and returns the first match.
Attempts to match a given name to the (schema) name of a compound indexes on the model and returns the first match.
Attempts to match a given name to the ( schema ) name of a compound indexes on the model and returns the first match .
pub fn resolve_index_fields(name: &str, model: &ModelRef) -> Option<Vec<ScalarFieldRef>> {
    model
        .unique_indexes()
        .into_iter()
        .find(|index| schema_builder::compound_index_field_name(index) == name)
        .map(|index| index.fields())
}
pub fn resolve_index_fields ( name : & str , model : & ModelRef ) -> Option < Vec < ScalarFieldRef > > { model . unique_indexes ( ) . into_iter ( ) . find ( | index | schema_builder :: compound_index_field_name ( index ) == name ) . map ( | index | index . fields ( ) ) }
Attempts to match a given name to the (schema) name of a compound indexes on the model and returns the first match.
Attempts to match a given name to the ( schema ) name of a compound indexes on the model and returns the first match .
name
&str
model
&ModelRef