/// Potentially updates `records` with the primary flag. Returns true if the service was
/// updated.
Potentially updates `records` with the primary flag. Returns true if the service was
updated.
Potentially updates ` records ` with the primary flag . Returns true if the service was updated .
pub fn maybe_update_primary(&mut self) -> bool {
        // Per DI v1.3 Section 5.5, if only one record is specified, then it must be marked as the
        // primary.
        let needs_primary = self.size() == 1 && !self.contains_primary();
        if needs_primary {
            self.records[0].primary = true;
        }
        needs_primary
    }
pub fn maybe_update_primary ( & mut self ) -> bool { // Per DI v1.3 Section 5.5, if only one record is specified, then it must be marked as the // primary. let needs_primary = self . size ( ) == 1 && ! self . contains_primary ( ) ; if needs_primary { self . records [ 0 ] . primary = true ; } needs_primary }
Potentially updates `records` with the primary flag.
Potentially updates ` records ` with the primary flag .
&mut self