#[non_exhaustive]pub struct CertificateResponse {
pub chain: Option<String>,
pub key_must_be_replaced: bool,
pub last_error: Option<String>,
pub name: String,
pub not_after: Option<String>,
pub profile: Option<String>,
pub revoked: bool,
pub state: String,
pub usable: bool,
}Expand description
Where a certificate request stands, and the chain once there is one.
JSON schema
{
"description": "Where a certificate request stands, and the chain once there is one.",
"type": "object",
"required": [
"key_must_be_replaced",
"name",
"revoked",
"state",
"usable"
],
"properties": {
"chain": {
"description": "The chain, PEM, once Canopy holds one — including while a renewal is\nunder way, the chain in hand staying valid until the new one lands.",
"type": [
"string",
"null"
]
},
"key_must_be_replaced": {
"description": "Whether the key must be replaced before asking again, rather than just the\ncertificate.",
"type": "boolean"
},
"last_error": {
"description": "Why the last attempt failed, if one did. Present while Canopy is still\nretrying.",
"type": [
"string",
"null"
]
},
"name": {
"description": "The name the certificate is (or will be) for, as Canopy normalised it.",
"type": "string"
},
"not_after": {
"description": "When it expires.",
"type": [
"string",
"null"
]
},
"profile": {
"description": "The profile it was issued under, if the authority named one.",
"type": [
"string",
"null"
]
},
"revoked": {
"description": "Whether an operator revoked it. Stop serving it and ask again.",
"type": "boolean"
},
"state": {
"description": "`pending`, `issued`, `failed`, or `revoked`.",
"type": "string"
},
"usable": {
"description": "Whether the chain can be served now.",
"type": "boolean"
}
}
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.chain: Option<String>The chain, PEM, once Canopy holds one — including while a renewal is under way, the chain in hand staying valid until the new one lands.
key_must_be_replaced: boolWhether the key must be replaced before asking again, rather than just the certificate.
last_error: Option<String>Why the last attempt failed, if one did. Present while Canopy is still retrying.
name: StringThe name the certificate is (or will be) for, as Canopy normalised it.
not_after: Option<String>When it expires.
profile: Option<String>The profile it was issued under, if the authority named one.
revoked: boolWhether an operator revoked it. Stop serving it and ask again.
state: Stringpending, issued, failed, or revoked.
usable: boolWhether the chain can be served now.
Implementations§
Source§impl CertificateResponse
impl CertificateResponse
Sourcepub fn builder() -> CertificateResponseBuilder
pub fn builder() -> CertificateResponseBuilder
Create an instance of CertificateResponse using the builder syntax
Trait Implementations§
Source§impl Clone for CertificateResponse
impl Clone for CertificateResponse
Source§fn clone(&self) -> CertificateResponse
fn clone(&self) -> CertificateResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CertificateResponse
impl Debug for CertificateResponse
Source§impl<'de> Deserialize<'de> for CertificateResponse
impl<'de> Deserialize<'de> for CertificateResponse
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
Auto Trait Implementations§
impl Freeze for CertificateResponse
impl RefUnwindSafe for CertificateResponse
impl Send for CertificateResponse
impl Sync for CertificateResponse
impl Unpin for CertificateResponse
impl UnsafeUnpin for CertificateResponse
impl UnwindSafe for CertificateResponse
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