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)] #[derive(Deserialize)]
#[serde(rename_all = "camelCase")] #[serde(rename_all = "camelCase")]
pub struct AccountResponse { pub struct AccountResponse {
#[allow(dead_code)]
pub status: String, pub status: String,
#[allow(dead_code)]
pub contact: Option<Vec<String>>, pub contact: Option<Vec<String>>,
#[allow(dead_code)]
pub terms_of_service_agreed: Option<bool>, pub terms_of_service_agreed: Option<bool>,
#[allow(dead_code)]
pub external_account_binding: Option<Value>, pub external_account_binding: Option<Value>,
pub orders: Option<String>, 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 struct Authorization {
pub identifier: Identifier, pub identifier: Identifier,
pub status: AuthorizationStatus, pub status: AuthorizationStatus,
#[allow(dead_code)]
pub expires: Option<String>, pub expires: Option<String>,
pub challenges: Vec<Challenge>, pub challenges: Vec<Challenge>,
#[allow(dead_code)]
pub wildcard: Option<bool>, pub wildcard: Option<bool>,
} }

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

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

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

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

Loading…
Cancel
Save