Skip to main content

nautobot_openapi/models/
integrity_algorithm_enum.rs

1/*
2 * API Documentation
3 *
4 * Source of truth and network automation platform
5 *
6 * The version of the OpenAPI document: 3.1.0 (3.1)
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11///
12#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
13pub enum IntegrityAlgorithmEnum {
14    #[serde(rename = "MD5")]
15    Md5,
16    #[serde(rename = "SHA1")]
17    Sha1,
18    #[serde(rename = "SHA256")]
19    Sha256,
20    #[serde(rename = "SHA384")]
21    Sha384,
22    #[serde(rename = "SHA512")]
23    Sha512,
24}
25
26impl ToString for IntegrityAlgorithmEnum {
27    fn to_string(&self) -> String {
28        match self {
29            Self::Md5 => String::from("MD5"),
30            Self::Sha1 => String::from("SHA1"),
31            Self::Sha256 => String::from("SHA256"),
32            Self::Sha384 => String::from("SHA384"),
33            Self::Sha512 => String::from("SHA512"),
34        }
35    }
36}
37
38impl Default for IntegrityAlgorithmEnum {
39    fn default() -> IntegrityAlgorithmEnum {
40        Self::Md5
41    }
42}