pub struct GBFSReaderV1 {
pub free_bike_status: Option<GBFSFreeBikeStatusV1>,
pub gbfs: GBFSV1,
pub gbfs_versions: Option<GBFSVersionsV1>,
pub station_information: Option<GBFSStationInformationV1>,
pub station_status: Option<GBFSStationStatusV1>,
pub system_alerts: Option<GBFSSystemAlertsV1>,
pub system_calendar: Option<GBFSSystemCalendarV1>,
pub system_hours: Option<GBFSSystemHoursV1>,
pub system_information: GBFSSystemInformationV1,
pub system_pricing_plans: Option<GBFSSystemPricingPlansV1>,
pub system_regions: Option<GBFSSystemRegionsV1>,
}Expand description
GBFS Version 1 Reader
Fields§
§free_bike_status: Option<GBFSFreeBikeStatusV1>Free Bike Status
gbfs: GBFSV1GBFS information
gbfs_versions: Option<GBFSVersionsV1>GBFS versions
station_information: Option<GBFSStationInformationV1>System Information
station_status: Option<GBFSStationStatusV1>Station Status
system_alerts: Option<GBFSSystemAlertsV1>System Alerts
system_calendar: Option<GBFSSystemCalendarV1>System Calendar
system_hours: Option<GBFSSystemHoursV1>System Hours
system_information: GBFSSystemInformationV1System Information
system_pricing_plans: Option<GBFSSystemPricingPlansV1>System Pricing Plans
system_regions: Option<GBFSSystemRegionsV1>System Regions
Implementations§
Source§impl GBFSReaderV1
impl GBFSReaderV1
Sourcepub fn features(&self) -> Vec<VectorFeature>
pub fn features(&self) -> Vec<VectorFeature>
Get all features from the GBFS V1 data
Sourcepub fn station_features(&self) -> Vec<GBFSStationFeatureV1> ⓘ
pub fn station_features(&self) -> Vec<GBFSStationFeatureV1> ⓘ
Get all station features from the GBFS V1 data
Sourcepub fn bike_features(&self) -> Vec<GBFSBikeFeatureV1> ⓘ
pub fn bike_features(&self) -> Vec<GBFSBikeFeatureV1> ⓘ
Get all bike features from the GBFS V1 data
Trait Implementations§
Source§impl Clone for GBFSReaderV1
impl Clone for GBFSReaderV1
Source§fn clone(&self) -> GBFSReaderV1
fn clone(&self) -> GBFSReaderV1
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 GBFSReaderV1
impl Debug for GBFSReaderV1
Source§impl Default for GBFSReaderV1
impl Default for GBFSReaderV1
Source§fn default() -> GBFSReaderV1
fn default() -> GBFSReaderV1
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GBFSReaderV1
impl<'de> Deserialize<'de> for GBFSReaderV1
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 GBFSReaderV1
A feature reader trait with a callback-based approach
impl FeatureReader<(), Map<String, ValueType>, Map<String, ValueType>> for GBFSReaderV1
A feature reader trait with a callback-based approach
Source§type FeatureIterator<'a> = GBFSIteratorV1
type FeatureIterator<'a> = GBFSIteratorV1
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 GBFSReaderV1
impl PartialEq for GBFSReaderV1
Source§impl Serialize for GBFSReaderV1
impl Serialize for GBFSReaderV1
impl StructuralPartialEq for GBFSReaderV1
Auto Trait Implementations§
impl Freeze for GBFSReaderV1
impl RefUnwindSafe for GBFSReaderV1
impl Send for GBFSReaderV1
impl Sync for GBFSReaderV1
impl Unpin for GBFSReaderV1
impl UnwindSafe for GBFSReaderV1
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().