acme_types/v2/
identifier.rs

1#[cfg(feature = "json")]
2use serde::{Deserialize, Serialize};
3
4/// Defines the identifier object in the Order and NewAuthorization resources
5#[derive(Clone, Debug)]
6#[cfg_attr(feature = "json", derive(Serialize, Deserialize))]
7pub struct Identifier {
8    /// Identifier type
9    #[cfg_attr(feature = "json", serde(rename = "type"))]
10    pub type_: IdentifierType,
11    /// Identifier value
12    pub value: String,
13}
14
15/// Order and authorization identifier type values
16#[derive(Clone, Debug)]
17#[cfg_attr(feature = "json", derive(Serialize, Deserialize))]
18pub enum IdentifierType {
19    #[cfg_attr(feature = "json", serde(rename = "dns"))]
20    Dns,
21}