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>
pub fn create<S>( name: S, private_key: S, leaf_certificate: S, ) -> CertificateRequest<Create, Certificate>
Sourcepub fn list() -> CertificateRequest<List, Vec<Certificate>>
pub fn list() -> CertificateRequest<List, Vec<Certificate>>
Sourcepub fn get<N: AsRef<str> + Display>(
id: N,
) -> CertificateRequest<Get, Certificate>
pub fn get<N: AsRef<str> + Display>( id: N, ) -> CertificateRequest<Get, Certificate>
Trait Implementations§
Source§impl Clone for Certificate
impl Clone for Certificate
Source§fn clone(&self) -> Certificate
fn clone(&self) -> Certificate
Returns a duplicate 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
Source§impl HasResponse for Certificate
impl HasResponse for Certificate
Auto Trait Implementations§
impl Freeze for Certificate
impl RefUnwindSafe for Certificate
impl Send for Certificate
impl Sync for Certificate
impl Unpin for Certificate
impl UnwindSafe for Certificate
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