Skip to main content

naurt_api/models/
final_destination_source_id_response.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/// FinalDestinationSourceIdResponse : An object containing information on source IDs. Source IDs refer to underlying IDs from address data sets. Currently supporting UPRN and UDPRN in the UK  referring to the OrdnanceSurvey datasets 
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct FinalDestinationSourceIdResponse {
17    #[serde(rename = "os_uprn", skip_serializing_if = "Option::is_none")]
18    pub os_uprn: Option<String>,
19    #[serde(rename = "os_udprn", skip_serializing_if = "Option::is_none")]
20    pub os_udprn: Option<String>,
21}
22
23impl FinalDestinationSourceIdResponse {
24    /// An object containing information on source IDs. Source IDs refer to underlying IDs from address data sets. Currently supporting UPRN and UDPRN in the UK  referring to the OrdnanceSurvey datasets 
25    pub fn new() -> FinalDestinationSourceIdResponse {
26        FinalDestinationSourceIdResponse {
27            os_uprn: None,
28            os_udprn: None,
29        }
30    }
31}
32