trieve_client/models/
location_polygon.rs

1/*
2 * Trieve API
3 *
4 * Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
5 *
6 * The version of the OpenAPI document: 0.11.7
7 * Contact: developers@trieve.ai
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12
13#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
14pub struct LocationPolygon {
15    #[serde(rename = "exterior")]
16    pub exterior: Vec<models::GeoInfo>,
17    #[serde(rename = "interior", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
18    pub interior: Option<Option<Vec<Vec<models::GeoInfo>>>>,
19}
20
21impl LocationPolygon {
22    pub fn new(exterior: Vec<models::GeoInfo>) -> LocationPolygon {
23        LocationPolygon {
24            exterior,
25            interior: None,
26        }
27    }
28}
29