openai_struct/models/
project_api_key.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 ProjectApiKey : Represents an individual API key in a project.
12
13#[allow(unused_imports)]
14use serde_json::Value;
15
16#[derive(Debug, Serialize, Deserialize)]
17pub struct ProjectApiKey {
18    /// The Unix timestamp (in seconds) of when the API key was created
19    #[serde(rename = "created_at")]
20    pub created_at: i32,
21    /// The identifier, which can be referenced in API endpoints
22    #[serde(rename = "id")]
23    pub id: String,
24    /// The Unix timestamp (in seconds) of when the API key was last used.
25    #[serde(rename = "last_used_at")]
26    pub last_used_at: i32,
27    /// The name of the API key
28    #[serde(rename = "name")]
29    pub name: String,
30    /// The object type, which is always `organization.project.api_key`
31    #[serde(rename = "object")]
32    pub object: String,
33    #[serde(rename = "owner")]
34    pub owner: crate::models::ProjectApiKeyOwner,
35    /// The redacted value of the API key
36    #[serde(rename = "redacted_value")]
37    pub redacted_value: String,
38}