]> git.proxmox.com Git - proxmox-acme-rs.git/commitdiff
make AccountData fields public
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Tue, 9 Mar 2021 12:22:52 +0000 (13:22 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Tue, 9 Mar 2021 12:22:52 +0000 (13:22 +0100)
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
src/account.rs

index 57c22461768dce764f533db206021fff5ece914d..747f22e348ce75e04958929732a6e18f8258a6e3 100644 (file)
@@ -161,22 +161,22 @@ pub struct AccountData {
         skip_serializing_if = "AccountStatus::is_new",
         default = "AccountStatus::new"
     )]
-    status: AccountStatus,
+    pub status: AccountStatus,
 
     #[serde(skip_serializing_if = "Option::is_none")]
-    orders: Option<String>,
+    pub orders: Option<String>,
 
     #[serde(skip_serializing_if = "Vec::is_empty", default)]
-    contact: Vec<String>,
+    pub contact: Vec<String>,
 
     #[serde(skip_serializing_if = "Option::is_none")]
-    terms_of_service_agreed: Option<bool>,
+    pub terms_of_service_agreed: Option<bool>,
 
     #[serde(skip_serializing_if = "Option::is_none")]
-    external_account_binding: Option<Value>,
+    pub external_account_binding: Option<Value>,
 
     #[serde(default = "default_true", skip_serializing_if = "is_false")]
-    only_return_existing: bool,
+    pub only_return_existing: bool,
 }
 
 #[inline]