Struct digitalocean::api::Certificate
source · pub struct Certificate { /* private fields */ }
Expand description
SSL certificates may be uploaded to DigitalOcean where they will be placed in a fully encrypted and isolated storage system. They may then be used to perform SSL termination on Load Balancers.
Implementations§
source§impl Certificate
impl Certificate
sourcepub fn id(&self) -> &String
pub fn id(&self) -> &String
A unique ID that can be used to identify and reference a certificate.
sourcepub fn not_after(&self) -> &DateTime<Utc>
pub fn not_after(&self) -> &DateTime<Utc>
A time value given in ISO8601 combined date and time format that represents the certificate’s expiration date.
sourcepub fn sha1_fingerprint(&self) -> &String
pub fn sha1_fingerprint(&self) -> &String
A unique identifier generated from the SHA-1 fingerprint of the certificate.
sourcepub fn created_at(&self) -> &DateTime<Utc>
pub fn created_at(&self) -> &DateTime<Utc>
A time value given in ISO8601 combined date and time format that represents when the certificate was created.
source§impl Certificate
impl Certificate
sourcepub fn create<S>(
name: S,
private_key: S,
leaf_certificate: S
) -> CertificateRequest<Create, Certificate>where
S: AsRef<str> + Serialize + Display,
pub fn create<S>(
name: S,
private_key: S,
leaf_certificate: S
) -> CertificateRequest<Create, Certificate>where
S: AsRef<str> + Serialize + Display,
sourcepub fn list() -> CertificateRequest<List, Vec<Certificate>>
pub fn list() -> CertificateRequest<List, Vec<Certificate>>
sourcepub fn get<N>(id: N) -> CertificateRequest<Get, Certificate>where
N: AsRef<str> + Display,
pub fn get<N>(id: N) -> CertificateRequest<Get, Certificate>where
N: AsRef<str> + Display,
Trait Implementations§
source§impl Clone for Certificate
impl Clone for Certificate
source§fn clone(&self) -> Certificate
fn clone(&self) -> Certificate
Returns a copy of the value. Read more
1.0.0 · 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 Certificate
impl Debug for Certificate
source§impl<'de> Deserialize<'de> for Certificate
impl<'de> Deserialize<'de> for Certificate
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