pub struct Certificate {
pub object: CertificateObject,
pub id: String,
pub name: String,
pub created_at: u64,
pub certificate_details: CertificateCertificateDetails,
pub active: Option<bool>,
}
Expand description
Represents an individual certificate
uploaded to the organization.
Fields§
§object: CertificateObject
The object type.
- If creating, updating, or getting a specific certificate, the object type is
certificate
. - If listing, activating, or deactivating certificates for the organization, the object type is
organization.certificate
. - If listing, activating, or deactivating certificates for a project, the object type is
organization.project.certificate
.
id: String
The identifier, which can be referenced in API endpoints
name: String
The name of the certificate.
created_at: u64
The Unix timestamp (in seconds) of when the certificate was uploaded.
certificate_details: CertificateCertificateDetails
§active: Option<bool>
Whether the certificate is currently active at the specified scope. Not returned when getting details for a specific certificate.
Implementations§
Source§impl Certificate
impl Certificate
Sourcepub fn builder() -> CertificateBuilder<((), (), (), (), (), ())>
pub fn builder() -> CertificateBuilder<((), (), (), (), (), ())>
Create a builder for building Certificate
.
On the builder, call .object(...)
, .id(...)
, .name(...)
, .created_at(...)
, .certificate_details(...)
(optional), .active(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of 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 PartialEq for Certificate
impl PartialEq for Certificate
Source§impl Serialize for Certificate
impl Serialize for Certificate
impl StructuralPartialEq 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