pub fn resolve_compound_id(name: &str, model: &ModelRef) -> Option<Vec<ScalarFieldRef>> {
    model.fields().id().and_then(|fields| {
        let names = fields.iter().map(|f| f.name.clone()).collect::<Vec<_>>();

        if name == schema_builder::compound_id_field_name(&names) {
            Some(fields)
        } else {
            None
        }
    })
}
/// Attempts to match a given name to the (schema) name of a compound id field on the model.
Attempts to match a given name to the (schema) name of a compound id field on the model.
Attempts to match a given name to the ( schema ) name of a compound id field on the model .
pub fn resolve_compound_id(name: &str, model: &ModelRef) -> Option<Vec<ScalarFieldRef>> {
    model.fields().id().and_then(|fields| {
        let names = fields.iter().map(|f| f.name.clone()).collect::<Vec<_>>();
        if name == schema_builder::compound_id_field_name(&names) {
            Some(fields)
        } else {
            None
        }
    })
}
pub fn resolve_compound_id ( name : & str , model : & ModelRef ) -> Option < Vec < ScalarFieldRef > > { model . fields ( ) . id ( ) . and_then ( | fields | { let names = fields . iter ( ) . map ( | f | f . name . clone ( ) ) . collect :: < Vec < _ > > ( ) ; if name == schema_builder :: compound_id_field_name ( & names ) { Some ( fields ) } else { None } } ) }
Attempts to match a given name to the (schema) name of a compound id field on the model.
Attempts to match a given name to the ( schema ) name of a compound id field on the model .
name
&str
model
&ModelRef