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

/// FinalDestinationStatus : The `queries` and `responses` arrays are always 1:1. If no match can be found, a 404 will NOT be returned. Instead, check this enum for `no_matches`. That  indicates no error has happened, but nothing was found. `ok` when something is found. 
/// The `queries` and `responses` arrays are always 1:1. If no match can be found, a 404 will NOT be returned. Instead, check this enum for `no_matches`. That  indicates no error has happened, but nothing was found. `ok` when something is found. 
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum FinalDestinationStatus {
    #[serde(rename = "ok")]
    Ok,
    #[serde(rename = "no_matches")]
    NoMatches,

}

impl std::fmt::Display for FinalDestinationStatus {
    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
        match self {
            Self::Ok => write!(f, "ok"),
            Self::NoMatches => write!(f, "no_matches"),
        }
    }
}

impl Default for FinalDestinationStatus {
    fn default() -> FinalDestinationStatus {
        Self::Ok
    }
}