thehive_client/models/
severity_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
14use serde_repr::{Serialize_repr,Deserialize_repr};
15/// 
16#[repr(i64)]
17#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize_repr, Deserialize_repr)]
18pub enum SeverityValue {
19    Variant1 = 1,
20    Variant2 = 2,
21    Variant3 = 3,
22    Variant4 = 4,
23
24}
25
26impl std::fmt::Display for SeverityValue {
27    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
28        write!(f, "{}", match self {
29            Self::Variant1 => "1",
30            Self::Variant2 => "2",
31            Self::Variant3 => "3",
32            Self::Variant4 => "4",
33        })
34    }
35}
36impl Default for SeverityValue {
37    fn default() -> SeverityValue {
38        Self::Variant1
39    }
40}
41