#[non_exhaustive]pub struct VectorStoreObject {
pub created_at: i64,
pub expires_after: Option<VectorStoreExpirationAfter>,
pub expires_at: Option<i64>,
pub file_counts: VectorStoreFileCounts,
pub id: String,
pub last_active_at: Option<i64>,
pub metadata: Option<Metadata>,
pub name: Option<String>,
pub object: String,
pub status: String,
pub usage_bytes: i64,
}Expand description
Represents a vector store object.
A vector store is a collection of processed files can be used by the file_search tool.
§Used By
/vector_stores(GET - inListVectorStoresResponse, POST response)/vector_stores/{vector_store_id}(GET, POST response)ListVectorStoresResponse
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.created_at: i64The Unix timestamp (in seconds) for when the vector store was created.
expires_after: Option<VectorStoreExpirationAfter>The expiration policy for the vector store.
expires_at: Option<i64>The Unix timestamp (in seconds) for when the vector store will expire.
file_counts: VectorStoreFileCountsCounts of files in different statuses within the vector store.
id: StringThe identifier, which can be referenced in API endpoints.
last_active_at: Option<i64>The Unix timestamp (in seconds) for when the vector store was last active.
metadata: Option<Metadata>Set of 16 key-value pairs attached to the object.
name: Option<String>The name of the vector store.
object: StringThe object type, which is always vector_store.
status: StringThe status of the vector store (expired, in_progress, or completed).
usage_bytes: i64The total number of bytes used by the files in the vector store.
Trait Implementations§
Source§impl Clone for VectorStoreObject
impl Clone for VectorStoreObject
Source§fn clone(&self) -> VectorStoreObject
fn clone(&self) -> VectorStoreObject
1.0.0 (const: unstable) · 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 ==.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 UnsafeUnpin 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<C, E> EntryToVal<C> for Ewhere
C: Collection<Entry = E>,
impl<C, E> EntryToVal<C> for Ewhere
C: Collection<Entry = E>,
Source§type Val = <C as Collection>::Val
type Val = <C as Collection>::Val
Entry in complex collections.
For example, in a HashMap, while Entry might be a ( key, value ) tuple, Val might only be the value part.Source§fn entry_to_val(self) -> <E as EntryToVal<C>>::Val
fn entry_to_val(self) -> <E as EntryToVal<C>>::Val
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
type Err = Infallible
fn into_result(self) -> Result<T, <T as IntoResult<T>>::Err>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<C, Val> ValToEntry<C> for Valwhere
C: CollectionValToEntry<Val>,
impl<C, Val> ValToEntry<C> for Valwhere
C: CollectionValToEntry<Val>,
Source§fn val_to_entry(self) -> <C as CollectionValToEntry<Val>>::Entry
fn val_to_entry(self) -> <C as CollectionValToEntry<Val>>::Entry
Invokes the val_to_entry function of the CollectionValToEntry trait to convert the value to an entry.
Source§type Entry = <C as CollectionValToEntry<Val>>::Entry
type Entry = <C as CollectionValToEntry<Val>>::Entry
Entry is defined by the Collection trait.