Skip to main content

mobilitydata_client/models/
metadata.rs

1/*
2 * Mobility Database Catalog
3 *
4 * API for the Mobility Database Catalog. See [https://mobilitydatabase.org/](https://mobilitydatabase.org/).  The Mobility Database API uses OAuth2 authentication. To initiate a successful API request, an access token must be included as a bearer token in the HTTP header. Access tokens are valid for one hour. To obtain an access token, you'll first need a refresh token, which is long-lived and does not expire. 
5 *
6 * The version of the OpenAPI document: 1.0.0
7 * Contact: api@mobilitydata.org
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct Metadata {
16    #[serde(rename = "version", skip_serializing_if = "Option::is_none")]
17    pub version: Option<String>,
18    #[serde(rename = "commit_hash", skip_serializing_if = "Option::is_none")]
19    pub commit_hash: Option<String>,
20}
21
22impl Metadata {
23    pub fn new() -> Metadata {
24        Metadata {
25            version: None,
26            commit_hash: None,
27        }
28    }
29}
30