openai_struct/models/certificate.rs
1/*
2 * OpenAI API
3 *
4 * The OpenAI REST API. Please see pub https://platform.openai.com/docs/api-reference for more details.
5 *
6 * OpenAPI spec pub version: 2.3.0
7 *
8 * Generated pub by: https://github.com/swagger-api/swagger-codegen.git
9 */
10
11/// pub Certificate : Represents an individual `certificate` uploaded to the organization.
12
13#[allow(unused_imports)]
14use serde_json::Value;
15
16#[derive(Debug, Serialize, Deserialize)]
17pub struct Certificate {
18 /// Whether the certificate is currently active at the specified scope. Not returned when getting details for a specific certificate.
19 #[serde(rename = "active")]
20 pub active: Option<bool>,
21 #[serde(rename = "certificate_details")]
22 pub certificate_details: crate::models::CertificateCertificateDetails,
23 /// The Unix timestamp (in seconds) of when the certificate was uploaded.
24 #[serde(rename = "created_at")]
25 pub created_at: i32,
26 /// The identifier, which can be referenced in API endpoints
27 #[serde(rename = "id")]
28 pub id: String,
29 /// The name of the certificate.
30 #[serde(rename = "name")]
31 pub name: String,
32 /// 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`.
33 #[serde(rename = "object")]
34 pub object: String,
35}