pub struct GBFSReaderV3 {Show 13 fields
pub locale: String,
pub gbfs: GBFSV3,
pub gbfs_versions: Option<GBFSVersionsV3>,
pub system_information: GBFSSystemInformationV3,
pub station_information: Option<GBFSStationInformationV3>,
pub station_status: Option<GBFSStationStatusV3>,
pub vehicle_status: Option<GBFSVehicleStatusV3>,
pub vehicle_types: Option<GBFSVehicleTypesV3>,
pub system_alerts: Option<GBFSSystemAlertsV3>,
pub system_regions: Option<GBFSSystemRegionsV3>,
pub system_pricing_plans: Option<GBFSSystemPricingPlansV3>,
pub geofencing_zones: Option<GBFSGeofencingZonesV3>,
pub manifest: Option<GBFSManifestV3>,
}Expand description
GBFS Version 3 Reader
Fields§
§locale: StringUser defined locale (defaults to “en”)
gbfs: GBFSV3The GBFS information
gbfs_versions: Option<GBFSVersionsV3>The feeds for the GBFS
system_information: GBFSSystemInformationV3The system information
station_information: Option<GBFSStationInformationV3>The station information
station_status: Option<GBFSStationStatusV3>The station status
vehicle_status: Option<GBFSVehicleStatusV3>The vehicle status
vehicle_types: Option<GBFSVehicleTypesV3>The vehicle types
system_alerts: Option<GBFSSystemAlertsV3>The system alerts
system_regions: Option<GBFSSystemRegionsV3>The system regions
system_pricing_plans: Option<GBFSSystemPricingPlansV3>The system pricing plans
geofencing_zones: Option<GBFSGeofencingZonesV3>The geofencing zones
manifest: Option<GBFSManifestV3>The manifest
Implementations§
Source§impl GBFSReaderV3
impl GBFSReaderV3
Sourcepub fn features(&self) -> Vec<VectorFeature>
pub fn features(&self) -> Vec<VectorFeature>
Get all features from the GBFS V3 data
Sourcepub fn station_features(&self) -> Vec<GBFSStationFeatureV3> ⓘ
pub fn station_features(&self) -> Vec<GBFSStationFeatureV3> ⓘ
Get all station features from the GBFS V3 data
Sourcepub fn geofencing_features(&self) -> Vec<GBFSGeofencingFeatureV3> ⓘ
pub fn geofencing_features(&self) -> Vec<GBFSGeofencingFeatureV3> ⓘ
Get Geofencing features from the GBFS V3 data
Sourcepub fn vehicle_features(&self) -> Vec<GBFSVehicleFeatureV3> ⓘ
pub fn vehicle_features(&self) -> Vec<GBFSVehicleFeatureV3> ⓘ
Get vehicle features for the GBFS V3 data
Trait Implementations§
Source§impl Clone for GBFSReaderV3
impl Clone for GBFSReaderV3
Source§fn clone(&self) -> GBFSReaderV3
fn clone(&self) -> GBFSReaderV3
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GBFSReaderV3
impl Debug for GBFSReaderV3
Source§impl Default for GBFSReaderV3
impl Default for GBFSReaderV3
Source§fn default() -> GBFSReaderV3
fn default() -> GBFSReaderV3
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GBFSReaderV3
impl<'de> Deserialize<'de> for GBFSReaderV3
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl FeatureReader<(), Map<String, ValueType>, Map<String, ValueType>> for GBFSReaderV3
A feature reader trait with a callback-based approach
impl FeatureReader<(), Map<String, ValueType>, Map<String, ValueType>> for GBFSReaderV3
A feature reader trait with a callback-based approach
Source§type FeatureIterator<'a> = GBFSIteratorV3
type FeatureIterator<'a> = GBFSIteratorV3
The Feature Reader should implement an iterator of some kind
Source§fn iter(&self) -> Self::FeatureIterator<'_>
fn iter(&self) -> Self::FeatureIterator<'_>
All readers have an iter function that returns a Iterator struct
Source§impl PartialEq for GBFSReaderV3
impl PartialEq for GBFSReaderV3
Source§impl Serialize for GBFSReaderV3
impl Serialize for GBFSReaderV3
impl StructuralPartialEq for GBFSReaderV3
Auto Trait Implementations§
impl Freeze for GBFSReaderV3
impl RefUnwindSafe for GBFSReaderV3
impl Send for GBFSReaderV3
impl Sync for GBFSReaderV3
impl Unpin for GBFSReaderV3
impl UnwindSafe for GBFSReaderV3
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
Mutably borrows from an owned value. Read more
§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)
🔬This is a nightly-only experimental API. (
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>
Converts
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>
Converts
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>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().