pub struct GBFSVehicleTypeV30 {Show 24 fields
pub vehicle_type_id: String,
pub form_factor: GBFSVehicleTypeFormFacatorV30,
pub propulsion_type: GBFSVehicleTypePropulsionTypeV30,
pub max_range_meters: Option<u64>,
pub name: Option<Vec<GBFSName>>,
pub vehicle_accessories: Option<Vec<GBFSVehicleTypeVehicleAccessoriesV30>>,
pub g_co2_km: Option<f64>,
pub vehicle_image: Option<String>,
pub make: Option<Vec<GBFSName>>,
pub model: Option<Vec<GBFSName>>,
pub color: Option<String>,
pub description: Option<Vec<GBFSName>>,
pub wheel_count: Option<u64>,
pub max_permitted_speed: Option<f64>,
pub rated_power: Option<f64>,
pub default_reserve_time: Option<f64>,
pub return_constraint: Option<GBFSVehicleTypeReturnConstraintV30>,
pub vehicle_assets: Option<GBFSVehicleTypeAssetV30>,
pub default_pricing_plan_id: Option<String>,
pub pricing_plan_ids: Option<Vec<String>>,
pub rider_capacity: Option<u64>,
pub cargo_volume_capacity: Option<u64>,
pub cargo_load_capacity: Option<u64>,
pub eco_labels: Option<Vec<GBFSVehicleTypeEcoLabelV30>>,
}Expand description
§GBFS Vehicle Types Schema V3.0
Fields§
§vehicle_type_id: StringUnique identifier of a vehicle type.
form_factor: GBFSVehicleTypeFormFacatorV30The vehicle’s general form factor.
propulsion_type: GBFSVehicleTypePropulsionTypeV30The primary propulsion type of the vehicle.
max_range_meters: Option<u64>The furthest distance the vehicle can travel without recharging or refueling.
name: Option<Vec<GBFSName>>Public name of the vehicle type.
vehicle_accessories: Option<Vec<GBFSVehicleTypeVehicleAccessoriesV30>>Description of accessories available in the vehicle.
g_co2_km: Option<f64>Maximum CO2 emissions per kilometer, in grams.
vehicle_image: Option<String>URL to an image of the vehicle.
make: Option<Vec<GBFSName>>Manufacturer of the vehicle.
model: Option<Vec<GBFSName>>Model of the vehicle.
color: Option<String>The vehicle’s color.
description: Option<Vec<GBFSName>>Customer-readable description of the vehicle type.
wheel_count: Option<u64>Number of wheels on the vehicle.
max_permitted_speed: Option<f64>The maximum speed permitted for the vehicle.
rated_power: Option<f64>The rated motor power in watts.
default_reserve_time: Option<f64>Default reserve time for the vehicle, in minutes.
return_constraint: Option<GBFSVehicleTypeReturnConstraintV30>Return conditions for the vehicle.
vehicle_assets: Option<GBFSVehicleTypeAssetV30>Information about the vehicle’s assets.
default_pricing_plan_id: Option<String>Default pricing plan ID for this vehicle type.
pricing_plan_ids: Option<Vec<String>>Array of all pricing plan IDs available for this vehicle type.
rider_capacity: Option<u64>Rider capacity of the vehicle.
cargo_volume_capacity: Option<u64>Cargo volume capacity in liters.
cargo_load_capacity: Option<u64>Cargo load capacity in kilograms.
eco_labels: Option<Vec<GBFSVehicleTypeEcoLabelV30>>Eco labels for the vehicle.
Trait Implementations§
Source§impl Clone for GBFSVehicleTypeV30
impl Clone for GBFSVehicleTypeV30
Source§fn clone(&self) -> GBFSVehicleTypeV30
fn clone(&self) -> GBFSVehicleTypeV30
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GBFSVehicleTypeV30
impl Debug for GBFSVehicleTypeV30
Source§impl Default for GBFSVehicleTypeV30
impl Default for GBFSVehicleTypeV30
Source§fn default() -> GBFSVehicleTypeV30
fn default() -> GBFSVehicleTypeV30
Source§impl<'de> Deserialize<'de> for GBFSVehicleTypeV30
impl<'de> Deserialize<'de> for GBFSVehicleTypeV30
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for GBFSVehicleTypeV30
impl PartialEq for GBFSVehicleTypeV30
Source§impl Serialize for GBFSVehicleTypeV30
impl Serialize for GBFSVehicleTypeV30
impl StructuralPartialEq for GBFSVehicleTypeV30
Auto Trait Implementations§
impl Freeze for GBFSVehicleTypeV30
impl RefUnwindSafe for GBFSVehicleTypeV30
impl Send for GBFSVehicleTypeV30
impl Sync for GBFSVehicleTypeV30
impl Unpin for GBFSVehicleTypeV30
impl UnwindSafe for GBFSVehicleTypeV30
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian().