1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/*
* Naurt API
*
* OpenAPI specification for Naurt's APIs.
*
* The version of the OpenAPI document: 0.1.4
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
/// FinalDestinationMatchLevel : Match level describing the geographical level to which an address has been matched. It can be one of the following: - Unit - StreetNumber - Street - Postalcode See: http://localhost:4321/reference/search-confidence/
/// Match level describing the geographical level to which an address has been matched. It can be one of the following: - Unit - StreetNumber - Street - Postalcode See: http://localhost:4321/reference/search-confidence/
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum FinalDestinationMatchLevel {
#[serde(rename = "Unit")]
Unit,
#[serde(rename = "StreetNumber")]
StreetNumber,
#[serde(rename = "Street")]
Street,
#[serde(rename = "Postalcode")]
Postalcode,
}
impl std::fmt::Display for FinalDestinationMatchLevel {
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
match self {
Self::Unit => write!(f, "Unit"),
Self::StreetNumber => write!(f, "StreetNumber"),
Self::Street => write!(f, "Street"),
Self::Postalcode => write!(f, "Postalcode"),
}
}
}
impl Default for FinalDestinationMatchLevel {
fn default() -> FinalDestinationMatchLevel {
Self::Unit
}
}