pub struct GBFSReaderV2 {Show 13 fields
pub free_bike_status: Option<GBFSFreeBikeStatusV2>,
pub gbfs: GBFSV2,
pub gbfs_versions: Option<GBFSVersionsV2>,
pub geofencing_zones: Option<GBFSGeofencingZonesV2>,
pub station_information: Option<GBFSStationInformationV2>,
pub station_status: Option<GBFSStationStatusV2>,
pub system_alerts: Option<GBFSSystemAlertsV2>,
pub system_calendar: Option<GBFSSystemCalendarV2>,
pub system_hours: Option<GBFSSystemHoursV2>,
pub system_information: GBFSSystemInformationV2,
pub system_pricing_plans: Option<GBFSSystemPricingPlansV2>,
pub system_regions: Option<GBFSSystemRegionsV2>,
pub vehicle_types: Option<GBFSVehicleTypesV2>,
}Expand description
GBFS Version 2 Reader
Fields§
§free_bike_status: Option<GBFSFreeBikeStatusV2>Free Bike Status
gbfs: GBFSV2GBFS
gbfs_versions: Option<GBFSVersionsV2>GBFS Versions
geofencing_zones: Option<GBFSGeofencingZonesV2>Geofencing
station_information: Option<GBFSStationInformationV2>Station Information
station_status: Option<GBFSStationStatusV2>Station Status
system_alerts: Option<GBFSSystemAlertsV2>System Alerts
system_calendar: Option<GBFSSystemCalendarV2>System Calendar
system_hours: Option<GBFSSystemHoursV2>System Hours
system_information: GBFSSystemInformationV2System Information
system_pricing_plans: Option<GBFSSystemPricingPlansV2>System Pricing Plans
system_regions: Option<GBFSSystemRegionsV2>System Regions
vehicle_types: Option<GBFSVehicleTypesV2>Vehicle Types
Implementations§
Source§impl GBFSReaderV2
impl GBFSReaderV2
Sourcepub fn features(&self) -> Vec<VectorFeature>
pub fn features(&self) -> Vec<VectorFeature>
Get all features from the GBFS V2 data
Sourcepub fn station_features(&self) -> Vec<GBFSStationFeatureV2> ⓘ
pub fn station_features(&self) -> Vec<GBFSStationFeatureV2> ⓘ
Get all station features from the GBFS V2 data
Sourcepub fn geofencing_features(&self) -> Vec<GBFSGeofencingFeatureV2> ⓘ
pub fn geofencing_features(&self) -> Vec<GBFSGeofencingFeatureV2> ⓘ
Get Geofencing features from the GBFS V2 data
Sourcepub fn bike_features(&self) -> Vec<GBFSBikeFeatureV2> ⓘ
pub fn bike_features(&self) -> Vec<GBFSBikeFeatureV2> ⓘ
Get all bike features from the GBFS V2 data
Trait Implementations§
Source§impl Clone for GBFSReaderV2
impl Clone for GBFSReaderV2
Source§fn clone(&self) -> GBFSReaderV2
fn clone(&self) -> GBFSReaderV2
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 GBFSReaderV2
impl Debug for GBFSReaderV2
Source§impl Default for GBFSReaderV2
impl Default for GBFSReaderV2
Source§fn default() -> GBFSReaderV2
fn default() -> GBFSReaderV2
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GBFSReaderV2
impl<'de> Deserialize<'de> for GBFSReaderV2
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 GBFSReaderV2
A feature reader trait with a callback-based approach
impl FeatureReader<(), Map<String, ValueType>, Map<String, ValueType>> for GBFSReaderV2
A feature reader trait with a callback-based approach
Source§type FeatureIterator<'a> = GBFSIteratorV2
type FeatureIterator<'a> = GBFSIteratorV2
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 GBFSReaderV2
impl PartialEq for GBFSReaderV2
Source§impl Serialize for GBFSReaderV2
impl Serialize for GBFSReaderV2
impl StructuralPartialEq for GBFSReaderV2
Auto Trait Implementations§
impl Freeze for GBFSReaderV2
impl RefUnwindSafe for GBFSReaderV2
impl Send for GBFSReaderV2
impl Sync for GBFSReaderV2
impl Unpin for GBFSReaderV2
impl UnwindSafe for GBFSReaderV2
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().