Browse Source

Remove warnings for unused ACME properties

main
Rodolphe Bréard 1 month ago
parent
commit
b60935ca06
  1. 4
      acmed/src/acme_proto/structs/account.rs
  2. 2
      acmed/src/acme_proto/structs/authorization.rs
  3. 4
      acmed/src/acme_proto/structs/directory.rs
  4. 4
      acmed/src/acme_proto/structs/order.rs

4
acmed/src/acme_proto/structs/account.rs

@ -49,9 +49,13 @@ impl Account {
#[derive(Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct AccountResponse {
#[allow(dead_code)]
pub status: String,
#[allow(dead_code)]
pub contact: Option<Vec<String>>,
#[allow(dead_code)]
pub terms_of_service_agreed: Option<bool>,
#[allow(dead_code)]
pub external_account_binding: Option<Value>,
pub orders: Option<String>,
}

2
acmed/src/acme_proto/structs/authorization.rs

@ -15,8 +15,10 @@ const DER_STRUCT_NAME: &str = "DER";
pub struct Authorization {
pub identifier: Identifier,
pub status: AuthorizationStatus,
#[allow(dead_code)]
pub expires: Option<String>,
pub challenges: Vec<Challenge>,
#[allow(dead_code)]
pub wildcard: Option<bool>,
}

4
acmed/src/acme_proto/structs/directory.rs

@ -4,6 +4,7 @@ use std::str::FromStr;
#[derive(Clone, Debug, Deserialize)]
#[serde(rename_all = "camelCase")]
#[allow(dead_code)]
pub struct DirectoryMeta {
pub terms_of_service: Option<String>,
pub website: Option<String>,
@ -14,11 +15,14 @@ pub struct DirectoryMeta {
#[derive(Clone, Debug, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct Directory {
#[allow(dead_code)]
pub meta: Option<DirectoryMeta>,
pub new_nonce: String,
pub new_account: String,
pub new_order: String,
#[allow(dead_code)]
pub new_authz: Option<String>,
#[allow(dead_code)]
pub revoke_cert: String,
pub key_change: String,
}

4
acmed/src/acme_proto/structs/order.rs

@ -29,9 +29,13 @@ impl NewOrder {
#[serde(rename_all = "camelCase")]
pub struct Order {
pub status: OrderStatus,
#[allow(dead_code)]
pub expires: Option<String>,
#[allow(dead_code)]
pub identifiers: Vec<Identifier>,
#[allow(dead_code)]
pub not_before: Option<String>,
#[allow(dead_code)]
pub not_after: Option<String>,
pub error: Option<HttpApiError>,
pub authorizations: Vec<String>,

Loading…
Cancel
Save