Skip to main content

mobilitydata_client/models/
bounding_box.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/// BoundingBox : Bounding box of the dataset when it was first added to the catalog.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct BoundingBox {
17    /// The minimum latitude for the dataset bounding box.
18    #[serde(rename = "minimum_latitude", skip_serializing_if = "Option::is_none")]
19    pub minimum_latitude: Option<f64>,
20    /// The maximum latitude for the dataset bounding box.
21    #[serde(rename = "maximum_latitude", skip_serializing_if = "Option::is_none")]
22    pub maximum_latitude: Option<f64>,
23    /// The minimum longitude for the dataset bounding box.
24    #[serde(rename = "minimum_longitude", skip_serializing_if = "Option::is_none")]
25    pub minimum_longitude: Option<f64>,
26    /// The maximum longitude for the dataset bounding box.
27    #[serde(rename = "maximum_longitude", skip_serializing_if = "Option::is_none")]
28    pub maximum_longitude: Option<f64>,
29}
30
31impl BoundingBox {
32    /// Bounding box of the dataset when it was first added to the catalog.
33    pub fn new() -> BoundingBox {
34        BoundingBox {
35            minimum_latitude: None,
36            maximum_latitude: None,
37            minimum_longitude: None,
38            maximum_longitude: None,
39        }
40    }
41}
42