pub struct CollectionInfo {
pub name: String,
pub dimension: usize,
pub metric: String,
pub vector_count: usize,
pub document_count: usize,
pub created_at: String,
pub updated_at: String,
pub indexing_status: Option<IndexingStatus>,
pub size: Option<Value>,
pub quantization: Option<Value>,
pub normalization: Option<Value>,
pub status: Option<String>,
}Expand description
Collection information.
The v3.0.0 REST surface returns metric in Rust-Debug form
(e.g. "Cosine"), plus new top-level blocks (size, quantization,
normalization, status). Every field beyond name + dimension
carries #[serde(default)] so the model tolerates pre-v3 servers
and future additions (request models keep the strict posture; this
is a response-only struct).
Fields§
§name: StringCollection name
dimension: usizeVector dimension
metric: StringSimilarity metric used for search. The v3 server emits this in
Rust-Debug form ("Cosine" / "Euclidean" / "DotProduct");
callers that compare against "cosine" etc. should go through
.to_lowercase().
vector_count: usizeNumber of vectors in the collection
document_count: usizeNumber of documents in the collection
created_at: StringCreation timestamp (RFC3339). Optional — pre-v3 servers may omit.
updated_at: StringLast update timestamp (RFC3339). Optional — pre-v3 servers may omit.
indexing_status: Option<IndexingStatus>Indexing status. Absent on the v3 server; some legacy servers send it.
size: Option<Value>Size block emitted by v3 ({total, total_bytes, index, index_bytes, payload, payload_bytes}).
quantization: Option<Value>Quantization block emitted by v3 ({enabled, type, bits}).
normalization: Option<Value>Normalization block emitted by v3.
status: Option<String>Ready/indexing/error state emitted by v3.
Trait Implementations§
Source§impl Clone for CollectionInfo
impl Clone for CollectionInfo
Source§fn clone(&self) -> CollectionInfo
fn clone(&self) -> CollectionInfo
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more