Skip to content

Commit

Permalink
Implement Serialize for OrderState
Browse files Browse the repository at this point in the history
  • Loading branch information
djc committed Feb 12, 2024
1 parent fb17bab commit 0247c2b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ mod pkcs8_serde {
}

/// An RFC 7807 problem document as returned by the ACME server
#[derive(Clone, Debug, Deserialize)]
#[derive(Clone, Debug, Deserialize, Serialize)]
#[serde(rename_all = "camelCase")]
pub struct Problem {
/// One of an enumerated list of problem types
Expand Down Expand Up @@ -249,7 +249,7 @@ pub struct Challenge {
/// The order identity will usually be represented by an [Order](crate::Order).
///
/// <https://datatracker.ietf.org/doc/html/rfc8555#section-7.1.3>
#[derive(Debug, Deserialize)]
#[derive(Debug, Deserialize, Serialize)]
#[serde(rename_all = "camelCase")]
pub struct OrderState {
/// Current status
Expand Down Expand Up @@ -457,7 +457,7 @@ pub enum ChallengeStatus {

/// Status of an [Order](crate::Order)
#[allow(missing_docs)]
#[derive(Clone, Copy, Debug, Deserialize, PartialEq, Eq)]
#[derive(Clone, Copy, Debug, Deserialize, Eq, PartialEq, Serialize)]
#[serde(rename_all = "camelCase")]
pub enum OrderStatus {
Pending,
Expand Down

0 comments on commit 0247c2b

Please sign in to comment.