1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/*
* Linkbreakers API
*
* This is a documentation of all the APIs of Linkbreakers
*
* The version of the OpenAPI document: 1.101.5
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
/// ValidationPurpose : - PURPOSE_UNSPECIFIED: Purpose not specified - PURPOSE_OWNERSHIP: DNS record proves ownership of the domain - PURPOSE_DOMAIN_VERIFICATION: DNS record enables TLS/domain verification with the provider
/// - PURPOSE_UNSPECIFIED: Purpose not specified - PURPOSE_OWNERSHIP: DNS record proves ownership of the domain - PURPOSE_DOMAIN_VERIFICATION: DNS record enables TLS/domain verification with the provider
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum ValidationPurpose {
#[serde(rename = "PURPOSE_UNSPECIFIED")]
PurposeUnspecified,
#[serde(rename = "PURPOSE_OWNERSHIP")]
PurposeOwnership,
#[serde(rename = "PURPOSE_DOMAIN_VERIFICATION")]
PurposeDomainVerification,
}
impl std::fmt::Display for ValidationPurpose {
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
match self {
Self::PurposeUnspecified => write!(f, "PURPOSE_UNSPECIFIED"),
Self::PurposeOwnership => write!(f, "PURPOSE_OWNERSHIP"),
Self::PurposeDomainVerification => write!(f, "PURPOSE_DOMAIN_VERIFICATION"),
}
}
}
impl Default for ValidationPurpose {
fn default() -> ValidationPurpose {
Self::PurposeUnspecified
}
}