thehive_client/models/
impact_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 ImpactStatusValue {
17    #[serde(rename = "NotApplicable")]
18    NotApplicable,
19    #[serde(rename = "WithImpact")]
20    WithImpact,
21    #[serde(rename = "NoImpact")]
22    NoImpact,
23
24}
25
26impl std::fmt::Display for ImpactStatusValue {
27    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
28        match self {
29            Self::NotApplicable => write!(f, "NotApplicable"),
30            Self::WithImpact => write!(f, "WithImpact"),
31            Self::NoImpact => write!(f, "NoImpact"),
32        }
33    }
34}
35
36impl Default for ImpactStatusValue {
37    fn default() -> ImpactStatusValue {
38        Self::NotApplicable
39    }
40}
41