Struct async_openai::types::VectorStoreObject
source · pub struct VectorStoreObject {
pub id: String,
pub object: String,
pub created_at: u32,
pub name: Option<String>,
pub usage_bytes: u64,
pub file_counts: VectorStoreFileCounts,
pub status: VectorStoreStatus,
pub expires_after: Option<VectorStoreExpirationAfter>,
pub expires_at: Option<u32>,
pub last_active_at: Option<u32>,
pub metadata: Option<HashMap<String, Value>>,
}
Expand description
A vector store is a collection of processed files can be used by the file_search
tool.
Fields§
§id: String
The identifier, which can be referenced in API endpoints.
object: String
The object type, which is always vector_store
.
created_at: u32
The Unix timestamp (in seconds) for when the vector store was created.
name: Option<String>
The name of the vector store.
usage_bytes: u64
The total number of bytes used by the files in the vector store.
file_counts: VectorStoreFileCounts
§status: VectorStoreStatus
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.
expires_after: Option<VectorStoreExpirationAfter>
§expires_at: Option<u32>
The Unix timestamp (in seconds) for when the vector store will expire.
last_active_at: Option<u32>
The Unix timestamp (in seconds) for when the vector store was last active.
metadata: Option<HashMap<String, Value>>
Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format. Keys can be a maximum of 64 characters long and values can be a maximum of 512 characters long.
Trait Implementations§
source§impl Clone for VectorStoreObject
impl Clone for VectorStoreObject
source§fn clone(&self) -> VectorStoreObject
fn clone(&self) -> VectorStoreObject
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for VectorStoreObject
impl Debug for VectorStoreObject
source§impl<'de> Deserialize<'de> for VectorStoreObject
impl<'de> Deserialize<'de> for VectorStoreObject
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>,
source§impl PartialEq for VectorStoreObject
impl PartialEq for VectorStoreObject
source§fn eq(&self, other: &VectorStoreObject) -> bool
fn eq(&self, other: &VectorStoreObject) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for VectorStoreObject
impl Serialize for VectorStoreObject
impl StructuralPartialEq for VectorStoreObject
Auto Trait Implementations§
impl Freeze for VectorStoreObject
impl RefUnwindSafe for VectorStoreObject
impl Send for VectorStoreObject
impl Sync for VectorStoreObject
impl Unpin for VectorStoreObject
impl UnwindSafe for VectorStoreObject
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)