openai_struct/models/vector_store_object.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 VectorStoreObject : A vector store is a collection of processed files can be used by the `file_search` tool.
12
13#[allow(unused_imports)]
14use serde_json::Value;
15
16#[derive(Debug, Serialize, Deserialize)]
17pub struct VectorStoreObject {
18 /// The Unix timestamp (in seconds) for when the vector store was created.
19 #[serde(rename = "created_at")]
20 pub created_at: i32,
21 #[serde(rename = "expires_after")]
22 pub expires_after: Option<crate::models::VectorStoreExpirationAfter>,
23 /// The Unix timestamp (in seconds) for when the vector store will expire.
24 #[serde(rename = "expires_at")]
25 pub expires_at: Option<i32>,
26 #[serde(rename = "file_counts")]
27 pub file_counts: crate::models::VectorStoreObjectFileCounts,
28 /// The identifier, which can be referenced in API endpoints.
29 #[serde(rename = "id")]
30 pub id: String,
31 /// The Unix timestamp (in seconds) for when the vector store was last active.
32 #[serde(rename = "last_active_at")]
33 pub last_active_at: i32,
34 #[serde(rename = "metadata")]
35 pub metadata: crate::models::Metadata,
36 /// The name of the vector store.
37 #[serde(rename = "name")]
38 pub name: String,
39 /// The object type, which is always `vector_store`.
40 #[serde(rename = "object")]
41 pub object: String,
42 /// The status of the vector store, which can be either `expired`, `in_progress`, or `completed`. A status of `completed` indicates that the vector store is ready for use.
43 #[serde(rename = "status")]
44 pub status: String,
45 /// The total number of bytes used by the files in the vector store.
46 #[serde(rename = "usage_bytes")]
47 pub usage_bytes: i32,
48}