naurt-api 0.1.3

OpenAPI specification for Naurt's APIs.
Documentation
/*
 * Naurt API
 *
 * OpenAPI specification for Naurt's APIs. 
 *
 * The version of the OpenAPI document: 0.1.2
 * 
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct FeedbackQuery {
    /// Existing Naurt ID for the address being updated
    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
    pub id: Option<uuid::Uuid>,
    /// Address text for a new feedback item. Address strings are not matched with current data, so existing addresses should use `id` instead. 
    #[serde(rename = "address_string", skip_serializing_if = "Option::is_none")]
    pub address_string: Option<String>,
    #[serde(rename = "parking_location", skip_serializing_if = "Option::is_none")]
    pub parking_location: Option<Box<models::FeedbackLocation>>,
    #[serde(rename = "door_location", skip_serializing_if = "Option::is_none")]
    pub door_location: Option<Box<models::FeedbackLocation>>,
}

impl FeedbackQuery {
    pub fn new() -> FeedbackQuery {
        FeedbackQuery {
            id: None,
            address_string: None,
            parking_location: None,
            door_location: None,
        }
    }
}