New field within FuelConverter:
pub struct FuelConverter {
// ...
#[serde(default)] // default to None for serde backwards compatibilty
pub fuel_type: Option<FuelType>,
// ...
}
off the top of my head, some example variants:
pub enum FuelType {
Gasoline, // E10
Diesel,
Hydrogen,
CNG,
E85,
Other {
lhv: todo!(),
something_else: todo!(),
},
}
Could support fuel economy calculation convenience functions.
would be useful for parsing metadata in RouteE
cc @jhoshiko
New field within
FuelConverter:off the top of my head, some example variants:
Could support fuel economy calculation convenience functions.
would be useful for parsing metadata in RouteE
cc @jhoshiko