pub struct Account {
pub status: Option<String>,
pub contact: Option<Vec<String>>,
pub external_account_binding: Option<String>,
pub terms_of_service_agreed: Option<bool>,
pub only_return_existing: Option<bool>,
pub orders: Option<String>,
}Expand description
An ACME account resource.
Represents a set of metadata associated with an account.
See RFC 8555 §7.1.2.
§Example JSON
{
"status": "valid",
"contact": [
"mailto:cert-admin@example.com",
"mailto:admin@example.com"
],
"termsOfServiceAgreed": true,
"orders": "https://example.com/acme/acct/evOfKhNU60wg/orders"
}Fields§
§status: Option<String>§contact: Option<Vec<String>>§external_account_binding: Option<String>§terms_of_service_agreed: Option<bool>§only_return_existing: Option<bool>§orders: Option<String>Implementations§
Source§impl Account
impl Account
pub fn is_status_valid(&self) -> bool
pub fn is_status_deactivated(&self) -> bool
pub fn is_status_revoked(&self) -> bool
pub fn terms_of_service_agreed(&self) -> bool
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Account
impl<'de> Deserialize<'de> for Account
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Account
impl StructuralPartialEq for Account
Auto Trait Implementations§
impl Freeze for Account
impl RefUnwindSafe for Account
impl Send for Account
impl Sync for Account
impl Unpin for Account
impl UnsafeUnpin for Account
impl UnwindSafe for Account
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more