Skip to main content

naurt_api/models/
final_destination_options.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/// FinalDestinationOptions : `options` impact all `queries` within a request 
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct FinalDestinationOptions {
17    /// This will format the response in a more human readable way. Only recommended for debug, as it increases payload size 
18    #[serde(rename = "pretty_print", skip_serializing_if = "Option::is_none")]
19    pub pretty_print: Option<bool>,
20    /// Returns additional debug information about request processing. Only  recommended for debug, as it increases payload size 
21    #[serde(rename = "verbose", skip_serializing_if = "Option::is_none")]
22    pub verbose: Option<bool>,
23    /// Adds the Naurt structured format of the address to the response 
24    #[serde(rename = "structured_response", skip_serializing_if = "Option::is_none")]
25    pub structured_response: Option<bool>,
26    #[serde(rename = "geojson_type", skip_serializing_if = "Option::is_none")]
27    pub geojson_type: Option<models::GeojsonType>,
28    /// Returns your original query back in the response 
29    #[serde(rename = "return_original", skip_serializing_if = "Option::is_none")]
30    pub return_original: Option<bool>,
31    #[serde(rename = "input_filter", skip_serializing_if = "Option::is_none")]
32    pub input_filter: Option<models::InputFilter>,
33}
34
35impl FinalDestinationOptions {
36    /// `options` impact all `queries` within a request 
37    pub fn new() -> FinalDestinationOptions {
38        FinalDestinationOptions {
39            pretty_print: None,
40            verbose: None,
41            structured_response: None,
42            geojson_type: None,
43            return_original: None,
44            input_filter: None,
45        }
46    }
47}
48