Skip to main content

naurt_api/models/
feedback_query.rs

1/*
2 * Naurt API
3 *
4 * OpenAPI specification for Naurt's APIs. 
5 *
6 * The version of the OpenAPI document: 0.1.2
7 * 
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 FeedbackQuery {
16    /// Existing Naurt ID for the address being updated
17    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
18    pub id: Option<uuid::Uuid>,
19    /// Address text for a new feedback item. Address strings are not matched with current data, so existing addresses should use `id` instead. 
20    #[serde(rename = "address_string", skip_serializing_if = "Option::is_none")]
21    pub address_string: Option<String>,
22    #[serde(rename = "parking_location", skip_serializing_if = "Option::is_none")]
23    pub parking_location: Option<Box<models::FeedbackLocation>>,
24    #[serde(rename = "door_location", skip_serializing_if = "Option::is_none")]
25    pub door_location: Option<Box<models::FeedbackLocation>>,
26}
27
28impl FeedbackQuery {
29    pub fn new() -> FeedbackQuery {
30        FeedbackQuery {
31            id: None,
32            address_string: None,
33            parking_location: None,
34            door_location: None,
35        }
36    }
37}
38