pub struct GBFSVehicleV3 {Show 14 fields
pub vehicle_id: String,
pub lat: Option<f64>,
pub lon: Option<f64>,
pub is_reserved: bool,
pub is_disabled: bool,
pub rental_uris: Option<GBFSRentalUri>,
pub vehicle_type_id: Option<String>,
pub last_reported: Option<String>,
pub current_range_meters: Option<f64>,
pub current_fuel_percent: Option<f64>,
pub station_id: Option<String>,
pub home_station_id: Option<String>,
pub pricing_plan_id: Option<String>,
pub available_until: Option<String>,
}Expand description
GBFS Vehicle V3
Fields§
§vehicle_id: StringRotating (as of v2.0) identifier of a vehicle.
lat: Option<f64>The latitude of the vehicle. Range: [-90, 90]
lon: Option<f64>The longitude of the vehicle. Range: [-180, 180]
is_reserved: boolIs the vehicle currently reserved?
is_disabled: boolIs the vehicle currently disabled (broken)?
rental_uris: Option<GBFSRentalUri>Contains rental URIs for Android, iOS, and web.
vehicle_type_id: Option<String>The vehicle_type_id of this vehicle (added in v2.1-RC).
last_reported: Option<String>The last time this vehicle reported its status to the operator’s backend. Format: date-time
current_range_meters: Option<f64>The furthest distance in meters the vehicle can travel without recharging or refueling. Minimum: 0
current_fuel_percent: Option<f64>Current percentage of fuel or battery power remaining in the vehicle. Range: [0, 1]
station_id: Option<String>Identifier referencing the station_id if the vehicle is currently at a station.
home_station_id: Option<String>The station_id of the station this vehicle must be returned to.
pricing_plan_id: Option<String>The plan_id of the pricing plan this vehicle is eligible for.
available_until: Option<String>The date and time when any rental of the vehicle must be completed.
Pattern: ^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})(([+-]([0-9]{2}):([0-9]{2}))|Z)$
Trait Implementations§
Source§impl Clone for GBFSVehicleV3
impl Clone for GBFSVehicleV3
Source§fn clone(&self) -> GBFSVehicleV3
fn clone(&self) -> GBFSVehicleV3
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GBFSVehicleV3
impl Debug for GBFSVehicleV3
Source§impl Default for GBFSVehicleV3
impl Default for GBFSVehicleV3
Source§fn default() -> GBFSVehicleV3
fn default() -> GBFSVehicleV3
Source§impl<'de> Deserialize<'de> for GBFSVehicleV3
impl<'de> Deserialize<'de> for GBFSVehicleV3
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 From<&Map<String, ValueType>> for GBFSVehicleV3
Starting from a ref to an MValue, convert to a struct
impl From<&Map<String, ValueType>> for GBFSVehicleV3
Starting from a ref to an MValue, convert to a struct
Source§impl From<&ValueType> for GBFSVehicleV3
If this struct ref is nested into another struct, pull out the MValue and let
From handle
impl From<&ValueType> for GBFSVehicleV3
If this struct ref is nested into another struct, pull out the MValue and let
From
Source§impl From<GBFSVehicleV3> for MValue
Starting from a struct, convert to an MValue
impl From<GBFSVehicleV3> for MValue
Starting from a struct, convert to an MValue
Source§fn from(value: GBFSVehicleV3) -> MValue
fn from(value: GBFSVehicleV3) -> MValue
Source§impl From<GBFSVehicleV3> for ValueType
If this struct is nested into another struct, convert to a ValueType that’s nested
impl From<GBFSVehicleV3> for ValueType
If this struct is nested into another struct, convert to a ValueType that’s nested
Source§fn from(value: GBFSVehicleV3) -> ValueType
fn from(value: GBFSVehicleV3) -> ValueType
Source§impl From<Map<String, ValueType>> for GBFSVehicleV3
Starting from an MValue, convert to a struct
impl From<Map<String, ValueType>> for GBFSVehicleV3
Starting from an MValue, convert to a struct
Source§impl From<ValueType> for GBFSVehicleV3
If this struct is nested into another struct, pull out the MValue and let
From handle
impl From<ValueType> for GBFSVehicleV3
If this struct is nested into another struct, pull out the MValue and let
From
Source§impl PartialEq for GBFSVehicleV3
impl PartialEq for GBFSVehicleV3
Source§impl Serialize for GBFSVehicleV3
impl Serialize for GBFSVehicleV3
impl MValueCompatible for GBFSVehicleV3
Finally implement the MValueCompatible trait
impl StructuralPartialEq for GBFSVehicleV3
Auto Trait Implementations§
impl Freeze for GBFSVehicleV3
impl RefUnwindSafe for GBFSVehicleV3
impl Send for GBFSVehicleV3
impl Sync for GBFSVehicleV3
impl Unpin for GBFSVehicleV3
impl UnwindSafe for GBFSVehicleV3
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().