mobilitydata_client/models/gbfs_validation_report.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/// GbfsValidationReport : A validation report of the GBFS feed.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct GbfsValidationReport {
17 /// The date and time the GBFS feed was validated, in ISO 8601 date-time format.
18 #[serde(rename = "validated_at", skip_serializing_if = "Option::is_none")]
19 pub validated_at: Option<String>,
20 #[serde(rename = "total_error", skip_serializing_if = "Option::is_none")]
21 pub total_error: Option<i32>,
22 /// The URL of the JSON report of the validation summary.
23 #[serde(rename = "report_summary_url", skip_serializing_if = "Option::is_none")]
24 pub report_summary_url: Option<String>,
25 /// The version of the validator used to validate the GBFS feed.
26 #[serde(rename = "validator_version", skip_serializing_if = "Option::is_none")]
27 pub validator_version: Option<String>,
28}
29
30impl GbfsValidationReport {
31 /// A validation report of the GBFS feed.
32 pub fn new() -> GbfsValidationReport {
33 GbfsValidationReport {
34 validated_at: None,
35 total_error: None,
36 report_summary_url: None,
37 validator_version: None,
38 }
39 }
40}
41