pub fn primary_identifier(&self) -> ModelProjection {
        self.primary_identifier.get_or_init(||{
            let dml_fields = self.dml_model.first_unique_criterion();
            let fields: Vec<_> = dml_fields
                .iter()
                .map(|dml_field| {
                    let field = self.fields().find_from_all(&dml_field.name).unwrap_or_else(|_| panic!("Error finding primary identifier: The parser field {} does not exist in the query engine datamodel.", &dml_field.name));
                    field.clone()
                })
                .collect();

            ModelProjection::new(fields)
        }).clone()
    }
/// Returns the set of fields to be used as the primary identifier for a record of that model.
/// The identifier is nothing but an internal convention to have an anchor point for querying, or in other words,
/// the identifier is not to be mistaken for a stable, external identifier, but has to be understood as
/// implementation detail that is used to reason over a fixed set of fields.
Returns the set of fields to be used as the primary identifier for a record of that model.
The identifier is nothing but an internal convention to have an anchor point for querying, or in other words,
the identifier is not to be mistaken for a stable, external identifier, but has to be understood as
implementation detail that is used to reason over a fixed set of fields.
Returns the set of fields to be used as the primary identifier for a record of that model . The identifier is nothing but an internal convention to have an anchor point for querying or in other words the identifier is not to be mistaken for a stable external identifier but has to be understood as implementation detail that is used to reason over a fixed set of fields .
pub fn primary_identifier(&self) -> ModelProjection {
        self.primary_identifier.get_or_init(||{
            let dml_fields = self.dml_model.first_unique_criterion();
            let fields: Vec<_> = dml_fields
                .iter()
                .map(|dml_field| {
                    let field = self.fields().find_from_all(&dml_field.name).unwrap_or_else(|_| panic!("Error finding primary identifier: The parser field {} does not exist in the query engine datamodel.", &dml_field.name));
                    field.clone()
                })
                .collect();
            ModelProjection::new(fields)
        }).clone()
    }
pub fn primary_identifier ( & self ) -> ModelProjection { self . primary_identifier . get_or_init ( | | { let dml_fields = self . dml_model . first_unique_criterion ( ) ; let fields : Vec < _ > = dml_fields . iter ( ) . map ( | dml_field | { let field = self . fields ( ) . find_from_all ( & dml_field . name ) . unwrap_or_else ( | _ | panic ! ( " " dml_field name ) ) ; field . clone ( ) } ) . collect ( ) ; ModelProjection :: new ( fields ) } ) . clone ( ) }
Returns the set of fields to be used as the primary identifier for a record of that model.
Returns the set of fields to be used as the primary identifier for a record of that model .
&self