pub struct GBFSStationV3 {Show 22 fields
pub station_id: String,
pub name: Vec<GBFSName>,
pub lat: f64,
pub lon: f64,
pub short_name: Option<Vec<GBFSName>>,
pub address: Option<String>,
pub cross_street: Option<String>,
pub region_id: Option<String>,
pub post_code: Option<String>,
pub station_opening_hours: Option<String>,
pub rental_methods: Option<Vec<GBFSStationInformationRentalMethodV30>>,
pub is_virtual_station: Option<bool>,
pub station_area: Option<Geometry>,
pub parking_type: Option<GBFSStationInformationParkingTypeV30>,
pub parking_hoop: Option<bool>,
pub contact_phone: Option<String>,
pub capacity: Option<u64>,
pub vehicle_types_capacity: Option<Vec<GBFSStationV3VehicleCapacity>>,
pub vehicle_docks_capacity: Option<Vec<GBFSStationV3VehicleCapacity>>,
pub is_valet_station: Option<bool>,
pub is_charging_station: Option<bool>,
pub rental_uris: Option<GBFSRentalUri>,
}Expand description
Information about a single station.
Fields§
§station_id: StringIdentifier of the station.
name: Vec<GBFSName>Public name of the station.
lat: f64The latitude of the station. Minimum: -90 Maximum: 90
lon: f64The longitude of the station. Minimum: -180 Maximum: 180
short_name: Option<Vec<GBFSName>>Short name or alternative identifier for the station.
address: Option<String>Address where the station is located.
cross_street: Option<String>Cross street or landmark where the station is located.
region_id: Option<String>Identifier of the region where the station is located.
post_code: Option<String>Postal code where the station is located.
station_opening_hours: Option<String>Hours of operation for the station in OSM opening_hours format.
rental_methods: Option<Vec<GBFSStationInformationRentalMethodV30>>Payment methods accepted at the station. Enum: [‘key’, ‘creditcard’, ‘paypass’, ‘applepay’, ‘androidpay’, ‘transitcard’, ‘accountnumber’, ‘phone’]
is_virtual_station: Option<bool>Is this station a location with or without physical infrastructure? (added in v2.1-RC)
station_area: Option<Geometry>A multipolygon describing the area of a virtual station. (added in v2.1-RC)
parking_type: Option<GBFSStationInformationParkingTypeV30>Type of parking station. (added in v2.3) Enum: [‘parking_lot’, ‘street_parking’, ‘underground_parking’, ‘sidewalk_parking’, ‘other’]
parking_hoop: Option<bool>Are parking hoops present at this station? (added in v2.3)
contact_phone: Option<String>Contact phone of the station. (added in v2.3)
capacity: Option<u64>Total docking points installed at the station, both available and unavailable. Minimum: 0
vehicle_types_capacity: Option<Vec<GBFSStationV3VehicleCapacity>>Parking capacity for virtual stations per vehicle type.
vehicle_docks_capacity: Option<Vec<GBFSStationV3VehicleCapacity>>Docking capacity per vehicle type at the station.
is_valet_station: Option<bool>Are valet services provided at the station? (added in v2.1-RC)
is_charging_station: Option<bool>Does the station support charging of electric vehicles? (added in v2.3-RC)
rental_uris: Option<GBFSRentalUri>Rental URIs for Android, iOS, and web.
Trait Implementations§
Source§impl Clone for GBFSStationV3
impl Clone for GBFSStationV3
Source§fn clone(&self) -> GBFSStationV3
fn clone(&self) -> GBFSStationV3
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GBFSStationV3
impl Debug for GBFSStationV3
Source§impl Default for GBFSStationV3
impl Default for GBFSStationV3
Source§fn default() -> GBFSStationV3
fn default() -> GBFSStationV3
Source§impl<'de> Deserialize<'de> for GBFSStationV3
impl<'de> Deserialize<'de> for GBFSStationV3
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 GBFSStationV3
impl PartialEq for GBFSStationV3
Source§impl Serialize for GBFSStationV3
impl Serialize for GBFSStationV3
impl StructuralPartialEq for GBFSStationV3
Auto Trait Implementations§
impl Freeze for GBFSStationV3
impl RefUnwindSafe for GBFSStationV3
impl Send for GBFSStationV3
impl Sync for GBFSStationV3
impl Unpin for GBFSStationV3
impl UnwindSafe for GBFSStationV3
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().