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