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