Add ChallengeType::Other variant

This commit is contained in:
Luke Frisken 2024-07-16 12:01:39 +02:00 committed by Dirkjan Ochtman
parent da55daaca9
commit 4a9b8703d9
1 changed files with 4 additions and 2 deletions

View File

@ -450,15 +450,15 @@ pub enum AuthorizationStatus {
/// Represent an identifier in an ACME [Order](crate::Order) /// Represent an identifier in an ACME [Order](crate::Order)
#[allow(missing_docs)] #[allow(missing_docs)]
#[derive(Clone, Debug, Serialize, Deserialize)] #[derive(Clone, Debug, Serialize, Deserialize, Eq, PartialEq)]
#[serde(tag = "type", content = "value", rename_all = "camelCase")] #[serde(tag = "type", content = "value", rename_all = "camelCase")]
pub enum Identifier { pub enum Identifier {
Dns(String), Dns(String),
} }
/// The challenge type /// The challenge type
#[derive(Clone, Copy, Debug, Deserialize, Eq, PartialEq)]
#[allow(missing_docs)] #[allow(missing_docs)]
#[derive(Clone, Debug, Deserialize, Eq, PartialEq)]
pub enum ChallengeType { pub enum ChallengeType {
#[serde(rename = "http-01")] #[serde(rename = "http-01")]
Http01, Http01,
@ -466,6 +466,8 @@ pub enum ChallengeType {
Dns01, Dns01,
#[serde(rename = "tls-alpn-01")] #[serde(rename = "tls-alpn-01")]
TlsAlpn01, TlsAlpn01,
#[serde(untagged)]
Unknown(String),
} }
#[derive(Clone, Copy, Debug, Deserialize)] #[derive(Clone, Copy, Debug, Deserialize)]