pub struct VectorStore {
pub id: String,
pub object: Option<String>,
pub created_at: Option<u64>,
pub last_active_at: Option<u64>,
pub name: Option<String>,
pub usage_bytes: Option<u64>,
pub expires_after: Option<Value>,
pub expires_at: Option<u64>,
pub file_counts: Option<VectorStoreFileCounts>,
pub metadata: Option<HashMap<String, String>>,
pub status: Option<String>,
}Expand description
A vector store.
Fields§
§id: StringThe vector store ID, e.g. vs_....
object: Option<String>The object type, always vector_store.
created_at: Option<u64>Unix timestamp (seconds) of when the store was created.
last_active_at: Option<u64>Unix timestamp (seconds) of when the store was last active.
name: Option<String>The name of the store.
usage_bytes: Option<u64>The number of bytes of storage used by the store.
expires_after: Option<Value>The expiration policy of the store, as raw JSON
({"anchor": "last_active_at", "days": N}).
expires_at: Option<u64>Unix timestamp (seconds) of when the store expires.
file_counts: Option<VectorStoreFileCounts>The file counts of the store.
metadata: Option<HashMap<String, String>>Arbitrary key-value metadata attached to the store.
status: Option<String>The status of the store (completed, expired, in_progress).
Trait Implementations§
Source§impl Clone for VectorStore
impl Clone for VectorStore
Source§fn clone(&self) -> VectorStore
fn clone(&self) -> VectorStore
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VectorStore
impl Debug for VectorStore
Source§impl<'de> Deserialize<'de> for VectorStore
impl<'de> Deserialize<'de> for VectorStore
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for VectorStore
impl RefUnwindSafe for VectorStore
impl Send for VectorStore
impl Sync for VectorStore
impl Unpin for VectorStore
impl UnsafeUnpin for VectorStore
impl UnwindSafe for VectorStore
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
Mutably borrows from an owned value. Read more