Derive `Clone` `Copy` for simple enums

Signed-off-by: Joe Grund <jgrund@whamcloud.io>
This commit is contained in:
Joe Grund 2023-06-19 17:27:57 -04:00 committed by Dirkjan Ochtman
parent 382aada615
commit 4a33aae615
1 changed files with 3 additions and 3 deletions

View File

@ -319,7 +319,7 @@ pub struct Authorization {
/// Status for an [`Authorization`] /// Status for an [`Authorization`]
#[allow(missing_docs)] #[allow(missing_docs)]
#[derive(Debug, Deserialize)] #[derive(Clone, Copy, Debug, Deserialize)]
#[serde(rename_all = "camelCase")] #[serde(rename_all = "camelCase")]
pub enum AuthorizationStatus { pub enum AuthorizationStatus {
Pending, Pending,
@ -349,7 +349,7 @@ pub enum ChallengeType {
TlsAlpn01, TlsAlpn01,
} }
#[derive(Debug, Deserialize)] #[derive(Clone, Copy, Debug, Deserialize)]
#[serde(rename_all = "camelCase")] #[serde(rename_all = "camelCase")]
pub enum ChallengeStatus { pub enum ChallengeStatus {
Pending, Pending,
@ -360,7 +360,7 @@ pub enum ChallengeStatus {
/// Status of an [Order](crate::Order) /// Status of an [Order](crate::Order)
#[allow(missing_docs)] #[allow(missing_docs)]
#[derive(Debug, Deserialize, PartialEq, Eq)] #[derive(Clone, Copy, Debug, Deserialize, PartialEq, Eq)]
#[serde(rename_all = "camelCase")] #[serde(rename_all = "camelCase")]
pub enum OrderStatus { pub enum OrderStatus {
Pending, Pending,