fn find_multipart_id(&self) -> Option<Vec<ScalarFieldRef>> {
        if !self.id_field_names.is_empty() {
            let fields = self
                .id_field_names
                .iter()
                .map(|f| {
                    self.scalar()
                        .into_iter()
                        .find(|field| &field.name == f)
                        .unwrap_or_else(|| panic!("Expected ID field {} to be present on the model", f))
                })
                .collect();

            Some(fields)
        } else {
            None
        }
    }
/// Attempts to resolve a compound ID field on the model (supplied with @@id on scalar fields).
Attempts to resolve a compound ID field on the model (supplied with @@id on scalar fields).
Attempts to resolve a compound ID field on the model ( supplied with @@id on scalar fields ) .
fn find_multipart_id(&self) -> Option<Vec<ScalarFieldRef>> {
        if !self.id_field_names.is_empty() {
            let fields = self
                .id_field_names
                .iter()
                .map(|f| {
                    self.scalar()
                        .into_iter()
                        .find(|field| &field.name == f)
                        .unwrap_or_else(|| panic!("Expected ID field {} to be present on the model", f))
                })
                .collect();
            Some(fields)
        } else {
            None
        }
    }
fn find_multipart_id ( & self ) -> Option < Vec < ScalarFieldRef > > { if ! self . id_field_names . is_empty ( ) { let fields = self . id_field_names . iter ( ) . map ( | f | { self . scalar ( ) . into_iter ( ) . find ( | field | & field . name == f ) . unwrap_or_else ( | | panic ! ( " " f ) ) } ) . collect ( ) ; Some ( fields ) } else { None } }
Attempts to resolve a compound ID field on the model (supplied with @@id on scalar fields).
Attempts to resolve a compound ID field on the model ( supplied with @@id on scalar fields ) .
&self