thehive_client/models/
tlp_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 TlpValue {
19    Variant0 = 0,
20    Variant1 = 1,
21    Variant2 = 2,
22    Variant3 = 3,
23    Variant4 = 4,
24
25}
26
27impl std::fmt::Display for TlpValue {
28    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
29        write!(f, "{}", match self {
30            Self::Variant0 => "0",
31            Self::Variant1 => "1",
32            Self::Variant2 => "2",
33            Self::Variant3 => "3",
34            Self::Variant4 => "4",
35        })
36    }
37}
38impl Default for TlpValue {
39    fn default() -> TlpValue {
40        Self::Variant0
41    }
42}
43