pub struct GbfsVersion {
pub version: Option<String>,
pub created_at: Option<String>,
pub last_updated_at: Option<String>,
pub source: Option<Source>,
pub endpoints: Option<Vec<GbfsEndpoint>>,
pub latest_validation_report: Option<Box<GbfsValidationReport>>,
}Fields§
§version: Option<String>The version of the GBFS specification that the feed is using. This is a string that follows the semantic versioning format.
created_at: Option<String>The date when the GBFS version was saved to the database.
last_updated_at: Option<String>The date when the GBFS version was last updated in the database.
source: Option<Source>Indicates the origin of the version information. Possible values are: * autodiscovery: Retrieved directly from the main GBFS autodiscovery URL. * gbfs_versions: Retrieved from the gbfs_versions endpoint.
endpoints: Option<Vec<GbfsEndpoint>>A list of endpoints that are available in the version.
latest_validation_report: Option<Box<GbfsValidationReport>>Implementations§
Source§impl GbfsVersion
impl GbfsVersion
pub fn new() -> GbfsVersion
Trait Implementations§
Source§impl Clone for GbfsVersion
impl Clone for GbfsVersion
Source§fn clone(&self) -> GbfsVersion
fn clone(&self) -> GbfsVersion
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GbfsVersion
impl Debug for GbfsVersion
Source§impl Default for GbfsVersion
impl Default for GbfsVersion
Source§fn default() -> GbfsVersion
fn default() -> GbfsVersion
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GbfsVersion
impl<'de> Deserialize<'de> for GbfsVersion
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 PartialEq for GbfsVersion
impl PartialEq for GbfsVersion
Source§impl Serialize for GbfsVersion
impl Serialize for GbfsVersion
impl StructuralPartialEq for GbfsVersion
Auto Trait Implementations§
impl Freeze for GbfsVersion
impl RefUnwindSafe for GbfsVersion
impl Send for GbfsVersion
impl Sync for GbfsVersion
impl Unpin for GbfsVersion
impl UnwindSafe for GbfsVersion
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more