mobilitydata_client/models/basic_dataset.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 BasicDataset {
16 /// Unique identifier used as a key for the datasets table.
17 #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
18 pub id: Option<String>,
19 /// ID of the feed related to this dataset.
20 #[serde(rename = "feed_id", skip_serializing_if = "Option::is_none")]
21 pub feed_id: Option<String>,
22}
23
24impl BasicDataset {
25 pub fn new() -> BasicDataset {
26 BasicDataset {
27 id: None,
28 feed_id: None,
29 }
30 }
31}
32