#[non_exhaustive]pub struct VectorStore {
pub id: String,
pub object: String,
pub created_at: u64,
pub name: Option<String>,
pub bytes: u64,
pub file_counts: VectorStoreFileCounts,
pub status: String,
pub expires_after: Option<Value>,
pub expires_at: Option<u64>,
pub last_active_at: Option<u64>,
pub metadata: BTreeMap<String, String>,
pub extra: BTreeMap<String, Value>,
/* private fields */
}Expand description
EN: Vector store object returned by the Vector Stores API. 中文:Vector Stores API 返回的向量存储对象。
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.id: StringEN: Vector store id. 中文:向量存储 ID。
object: StringEN: API object type. 中文:API 对象类型。
created_at: u64EN: Unix timestamp for creation. 中文:创建时间的 Unix 时间戳。
name: Option<String>EN: Vector store name, when returned. 中文:向量存储名称,如响应中存在。
bytes: u64EN: Bytes used by the vector store. 中文:向量存储使用的字节数。
file_counts: VectorStoreFileCountsEN: File count summary. 中文:文件数量汇总。
status: StringEN: Vector store status. 中文:向量存储状态。
expires_after: Option<Value>EN: Expiration policy, when returned. 中文:过期策略,如响应中存在。
expires_at: Option<u64>EN: Unix timestamp for expiration, when returned. 中文:过期时间的 Unix 时间戳,如响应中存在。
last_active_at: Option<u64>EN: Last active timestamp, when returned. 中文:最后活跃时间戳,如响应中存在。
metadata: BTreeMap<String, String>EN: Metadata returned by the API. 中文:API 返回的元数据。
extra: BTreeMap<String, Value>EN: Additional fields preserved for forward compatibility. 中文:为前向兼容保留的额外字段。
Implementations§
Source§impl VectorStore
impl VectorStore
Sourcepub fn request_id(&self) -> Option<&RequestId>
pub fn request_id(&self) -> Option<&RequestId>
EN: Returns the OpenAI request id, when present. 中文:返回 OpenAI 请求 ID,如存在。
Trait Implementations§
Source§impl Clone for VectorStore
impl Clone for VectorStore
Source§fn clone(&self) -> VectorStore
fn clone(&self) -> VectorStore
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 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>,
Source§impl PartialEq for VectorStore
impl PartialEq for VectorStore
Source§fn eq(&self, other: &VectorStore) -> bool
fn eq(&self, other: &VectorStore) -> bool
self and other values to be equal, and is used by ==.