Skip to main content

mobilitydata_client/models/
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/// ValidationReport : Validation report
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct ValidationReport {
17    /// The date and time the report was generated, in ISO 8601 date-time format.
18    #[serde(rename = "validated_at", skip_serializing_if = "Option::is_none")]
19    pub validated_at: Option<String>,
20    /// List of GTFS features associated to the dataset. More information, https://gtfs.org/getting-started/features/overview
21    #[serde(rename = "features", skip_serializing_if = "Option::is_none")]
22    pub features: Option<Vec<String>>,
23    #[serde(rename = "validator_version", skip_serializing_if = "Option::is_none")]
24    pub validator_version: Option<String>,
25    #[serde(rename = "total_error", skip_serializing_if = "Option::is_none")]
26    pub total_error: Option<i32>,
27    #[serde(rename = "total_warning", skip_serializing_if = "Option::is_none")]
28    pub total_warning: Option<i32>,
29    #[serde(rename = "total_info", skip_serializing_if = "Option::is_none")]
30    pub total_info: Option<i32>,
31    #[serde(rename = "unique_error_count", skip_serializing_if = "Option::is_none")]
32    pub unique_error_count: Option<i32>,
33    #[serde(rename = "unique_warning_count", skip_serializing_if = "Option::is_none")]
34    pub unique_warning_count: Option<i32>,
35    #[serde(rename = "unique_info_count", skip_serializing_if = "Option::is_none")]
36    pub unique_info_count: Option<i32>,
37    /// JSON validation report URL
38    #[serde(rename = "url_json", skip_serializing_if = "Option::is_none")]
39    pub url_json: Option<String>,
40    /// HTML validation report URL
41    #[serde(rename = "url_html", skip_serializing_if = "Option::is_none")]
42    pub url_html: Option<String>,
43}
44
45impl ValidationReport {
46    /// Validation report
47    pub fn new() -> ValidationReport {
48        ValidationReport {
49            validated_at: None,
50            features: None,
51            validator_version: None,
52            total_error: None,
53            total_warning: None,
54            total_info: None,
55            unique_error_count: None,
56            unique_warning_count: None,
57            unique_info_count: None,
58            url_json: None,
59            url_html: None,
60        }
61    }
62}
63