fn convert_for_stream(result: &UpdateResult) -> StreamItem {
    let mapped_region_tyes =
        result.region_types
              .iter()
              .map(|region_type| crate::grpc::esi_markets::RegionType { region_id: region_type.0,
                                                                        type_id: region_type.1 })
              .collect();

    Ok(GetRegionTypeUpdateStreamResponse { region_types: mapped_region_tyes })
}
/// Convert between inetrnal and stream types
Convert between inetrnal and stream types
Convert between inetrnal and stream types
fn convert_for_stream(result: &UpdateResult) -> StreamItem {
    let mapped_region_tyes =
        result.region_types
              .iter()
              .map(|region_type| crate::grpc::esi_markets::RegionType { region_id: region_type.0,
                                                                        type_id: region_type.1 })
              .collect();
    Ok(GetRegionTypeUpdateStreamResponse { region_types: mapped_region_tyes })
}
fn convert_for_stream ( result : & UpdateResult ) -> StreamItem { let mapped_region_tyes = result . region_types . iter ( ) . map ( | region_type | crate :: grpc :: esi_markets :: RegionType { region_id : region_type . 0 , type_id : region_type . 1 } ) . collect ( ) ; Ok ( GetRegionTypeUpdateStreamResponse { region_types : mapped_region_tyes } ) }
Convert between inetrnal and stream types
Convert between inetrnal and stream types
result
&UpdateResult
result
&UpdateResult