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};

/// InputFilter : Input filtering helps when you have addresses from sources you can't control. Sometimes, providers might miss out on important parts of addresses, like a street number or postcode. If Naurt detects that an address is missing too  many fields to be likely to give a good match, it can be rejected by this  feature  `none` turns this feature off and does not do any input filtering. This may  result in some poor responses  `loose` is the default - it does filter out some poor inputs but allows some  missing fields   `strict` is our strictest, and only allows searches which are likely to produce good matches 
/// Input filtering helps when you have addresses from sources you can't control. Sometimes, providers might miss out on important parts of addresses, like a street number or postcode. If Naurt detects that an address is missing too  many fields to be likely to give a good match, it can be rejected by this  feature  `none` turns this feature off and does not do any input filtering. This may  result in some poor responses  `loose` is the default - it does filter out some poor inputs but allows some  missing fields   `strict` is our strictest, and only allows searches which are likely to produce good matches 
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum InputFilter {
    #[serde(rename = "none")]
    None,
    #[serde(rename = "loose")]
    Loose,
    #[serde(rename = "strict")]
    Strict,

}

impl std::fmt::Display for InputFilter {
    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
        match self {
            Self::None => write!(f, "none"),
            Self::Loose => write!(f, "loose"),
            Self::Strict => write!(f, "strict"),
        }
    }
}

impl Default for InputFilter {
    fn default() -> InputFilter {
        Self::None
    }
}