pub struct CollectionEntry {
pub id: CollectionId,
pub name: String,
pub descriptor: Vec<u8>,
pub segments: Vec<SegmentRef>,
pub index_snapshot: Option<IndexSnapshotRef>,
}Expand description
Catalog entry for one collection.
Fields§
§id: CollectionIdStable collection id.
name: StringHuman-readable collection name, unique within the store.
descriptor: Vec<u8>Postcard-encoded collection descriptor (dim, dtype, metric, fields).
segments: Vec<SegmentRef>Live sealed segments, in creation order.
index_snapshot: Option<IndexSnapshotRef>The current durable index snapshot for this collection, if any (ADR-0025).
None for a collection whose index is rebuilt on open (HNSW, the batch
graph, or a store written before v2).
Trait Implementations§
Source§impl Clone for CollectionEntry
impl Clone for CollectionEntry
Source§fn clone(&self) -> CollectionEntry
fn clone(&self) -> CollectionEntry
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 CollectionEntry
impl Debug for CollectionEntry
Source§impl<'de> Deserialize<'de> for CollectionEntry
impl<'de> Deserialize<'de> for CollectionEntry
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
impl Eq for CollectionEntry
Source§impl PartialEq for CollectionEntry
impl PartialEq for CollectionEntry
Source§fn eq(&self, other: &CollectionEntry) -> bool
fn eq(&self, other: &CollectionEntry) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CollectionEntry
impl Serialize for CollectionEntry
impl StructuralPartialEq for CollectionEntry
Auto Trait Implementations§
impl Freeze for CollectionEntry
impl RefUnwindSafe for CollectionEntry
impl Send for CollectionEntry
impl Sync for CollectionEntry
impl Unpin for CollectionEntry
impl UnsafeUnpin for CollectionEntry
impl UnwindSafe for CollectionEntry
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