pub struct Collection { /* private fields */ }Expand description
Stored collection metadata.
Implementations§
Source§impl Collection
impl Collection
Sourcepub fn new(name: String, id: CollectionId, config: CollectionConfig) -> Self
pub fn new(name: String, id: CollectionId, config: CollectionConfig) -> Self
Create new metadata for a collection.
Sourcepub fn id(&self) -> CollectionId
pub fn id(&self) -> CollectionId
Collection ID.
Sourcepub fn created_at(&self) -> u64
pub fn created_at(&self) -> u64
Creation timestamp (seconds since UNIX epoch).
Sourcepub fn compression(&self) -> CompressionProfile
pub fn compression(&self) -> CompressionProfile
Compression profile.
Sourcepub fn increment_doc_count(&mut self)
pub fn increment_doc_count(&mut self)
Increase document count by one.
Sourcepub fn decrement_doc_count(&mut self)
pub fn decrement_doc_count(&mut self)
Decrease document count by one.
Trait Implementations§
Source§impl Clone for Collection
impl Clone for Collection
Source§fn clone(&self) -> Collection
fn clone(&self) -> Collection
Returns a duplicate of the value. Read more
1.0.0 · 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 Collection
impl Debug for Collection
Source§impl PartialEq for Collection
impl PartialEq for Collection
impl Eq for Collection
impl StructuralPartialEq for Collection
Auto Trait Implementations§
impl Freeze for Collection
impl RefUnwindSafe for Collection
impl Send for Collection
impl Sync for Collection
impl Unpin for Collection
impl UnsafeUnpin for Collection
impl UnwindSafe for Collection
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