thehive_client/models/
case_status_value.rs

1/*
2 * TheHive API
3 *
4 * Comprehensive OpenAPI specification inferred from the TheHive4py client library. This API allows interaction with TheHive platform for managing alerts, cases, observables, tasks, users, and other entities. 
5 *
6 * The version of the OpenAPI document: 2.1.0
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// 
15#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
16pub enum CaseStatusValue {
17    #[serde(rename = "New")]
18    New,
19    #[serde(rename = "InProgress")]
20    InProgress,
21    #[serde(rename = "Indeterminate")]
22    Indeterminate,
23    #[serde(rename = "FalsePositive")]
24    FalsePositive,
25    #[serde(rename = "TruePositive")]
26    TruePositive,
27    #[serde(rename = "Other")]
28    Other,
29    #[serde(rename = "Duplicated")]
30    Duplicated,
31
32}
33
34impl std::fmt::Display for CaseStatusValue {
35    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
36        match self {
37            Self::New => write!(f, "New"),
38            Self::InProgress => write!(f, "InProgress"),
39            Self::Indeterminate => write!(f, "Indeterminate"),
40            Self::FalsePositive => write!(f, "FalsePositive"),
41            Self::TruePositive => write!(f, "TruePositive"),
42            Self::Other => write!(f, "Other"),
43            Self::Duplicated => write!(f, "Duplicated"),
44        }
45    }
46}
47
48impl Default for CaseStatusValue {
49    fn default() -> CaseStatusValue {
50        Self::New
51    }
52}
53