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 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CollectionInfo
impl Debug for CollectionInfo
Source§impl<'de> Deserialize<'de> for CollectionInfo
impl<'de> Deserialize<'de> for CollectionInfo
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>,
Auto Trait Implementations§
impl Freeze for CollectionInfo
impl RefUnwindSafe for CollectionInfo
impl Send for CollectionInfo
impl Sync for CollectionInfo
impl Unpin for CollectionInfo
impl UnsafeUnpin for CollectionInfo
impl UnwindSafe for CollectionInfo
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§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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request