pub struct CollectionInfo {
pub id: CollectionId,
pub name: String,
pub current_version: SchemaVersion,
pub fields: Vec<FieldDef>,
pub indexes: Vec<IndexDef>,
pub primary_field: Option<String>,
}Expand description
Snapshot of one registered collection (latest schema version).
Fields§
§id: CollectionId§name: String§current_version: SchemaVersion§fields: Vec<FieldDef>§indexes: Vec<IndexDef>§primary_field: Option<String>Single top-level field name for the primary key (None for legacy catalog v1 segments).
Trait Implementations§
Source§impl Clone for CollectionInfo
impl Clone for CollectionInfo
Source§fn clone(&self) -> CollectionInfo
fn clone(&self) -> CollectionInfo
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 CollectionInfo
impl Debug for CollectionInfo
Source§impl PartialEq for CollectionInfo
impl PartialEq for CollectionInfo
Source§fn eq(&self, other: &CollectionInfo) -> bool
fn eq(&self, other: &CollectionInfo) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CollectionInfo
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
Mutably borrows from an owned value. Read more