/// Extracts the ids from a `SubnetListRecord`.
Extracts the ids from a `SubnetListRecord`.
Extracts the ids from a ` SubnetListRecord ` .
fn extract_subnet_ids(subnet_list_record: &SubnetListRecord) -> Vec<SubnetId> {
    subnet_list_record
        .subnets
        .iter()
        .map(|x| {
            SubnetId::from(
                PrincipalId::try_from(x.clone().as_slice()).expect("failed parsing principal id"),
            )
        })
        .collect()
}
fn extract_subnet_ids ( subnet_list_record : & SubnetListRecord ) -> Vec < SubnetId > { subnet_list_record . subnets . iter ( ) . map ( | x | { SubnetId :: from ( PrincipalId :: try_from ( x . clone ( ) . as_slice ( ) ) . expect ( " " ) , ) } ) . collect ( ) }
Extracts the ids from a `SubnetListRecord`.
Extracts the ids from a ` SubnetListRecord ` .
subnet_list_record
&SubnetListRecord