pub struct GBFSSystem {
pub country_code: String,
pub name: String,
pub location: String,
pub system_id: String,
pub url: String,
pub auto_discovery_url: String,
pub supported_versions: Vec<String>,
pub auth_info: Option<String>,
}Expand description
System Definition that is returned from the github CSV file.
Fields§
§country_code: String[Required] ISO 3166-1 alpha-2 code designating the country where the system is located.
name: String[Required] Name of the mobility system. This MUST match the name field in system_information.json
location: String[Required] Primary city in which the system is located, followed by the 2-letter state code for US systems. The location name SHOULD be in English if the location has an English name (e.g.: Brussels).
system_id: String[Required] ID for the system. This MUST match the system_id field in system_information.json.
url: String[Required] URL for the system from the url field in system_information.json.
If the url field is not included in system_information.json this SHOULD be the primary URL
for the system operator.
auto_discovery_url: String[Required] URL for the system’s gbfs.json auto-discovery file.
supported_versions: Vec<String>[Required] List of GBFS version(s) under which the feed is published. Multiple values are separated by a semi-colon surrounded with 1 space on each side for readability (“ ; “).
auth_info: Option<String>[Conditionally Required] If authentication is required, this MUST contain a URL to a human-readable page describing how the authentication should be performed and how credentials can be created, or directly contain the public key-value pair to append to the feed URLs.
Trait Implementations§
Source§impl Clone for GBFSSystem
impl Clone for GBFSSystem
Source§fn clone(&self) -> GBFSSystem
fn clone(&self) -> GBFSSystem
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GBFSSystem
impl Debug for GBFSSystem
Source§impl Default for GBFSSystem
impl Default for GBFSSystem
Source§fn default() -> GBFSSystem
fn default() -> GBFSSystem
Source§impl<'de> Deserialize<'de> for GBFSSystem
impl<'de> Deserialize<'de> for GBFSSystem
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 GBFSSystem
impl PartialEq for GBFSSystem
Source§impl Serialize for GBFSSystem
impl Serialize for GBFSSystem
impl StructuralPartialEq for GBFSSystem
Auto Trait Implementations§
impl Freeze for GBFSSystem
impl RefUnwindSafe for GBFSSystem
impl Send for GBFSSystem
impl Sync for GBFSSystem
impl Unpin for GBFSSystem
impl UnwindSafe for GBFSSystem
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().