pub fn from_di_records(records: &Vec<di::DeviceIdentificationRecord>) -> Result<Self, Error> {
        if records.is_empty() {
            return Err(Error::EmptyRequest);
        }
        let parsed = records.iter().map(DIRecord::try_from).collect_results()?;
        let _ = Self::validate_primary(&parsed)?;

        Ok(Self { records: parsed })
    }
/// Builds the Device Identification service from a set of FIDL records.
Builds the Device Identification service from a set of FIDL records.
Builds the Device Identification service from a set of FIDL records .
pub fn from_di_records(records: &Vec<di::DeviceIdentificationRecord>) -> Result<Self, Error> {
        if records.is_empty() {
            return Err(Error::EmptyRequest);
        }
        let parsed = records.iter().map(DIRecord::try_from).collect_results()?;
        let _ = Self::validate_primary(&parsed)?;
        Ok(Self { records: parsed })
    }
pub fn from_di_records ( records : & Vec < di :: DeviceIdentificationRecord > ) -> Result < Self , Error > { if records . is_empty ( ) { return Err ( Error :: EmptyRequest ) ; } let parsed = records . iter ( ) . map ( DIRecord :: try_from ) . collect_results ( ) ? ; let _ = Self :: validate_primary ( & parsed ) ? ; Ok ( Self { records : parsed } ) }
Builds the Device Identification service from a set of FIDL records.
Builds the Device Identification service from a set of FIDL records .
records
&Vec<di::DeviceIdentificationRecord>
records
&Vec<di::DeviceIdentificationRecord>