pub struct IndexMetadata { /* private fields */ }Expand description
Index metadata.
Implementations§
Source§impl IndexMetadata
impl IndexMetadata
Sourcepub fn with_columns(self, columns: Vec<IndexColumn>) -> Self
pub fn with_columns(self, columns: Vec<IndexColumn>) -> Self
Sets indexed columns.
Sourcepub const fn with_uniqueness(self, uniqueness: IndexUniqueness) -> Self
pub const fn with_uniqueness(self, uniqueness: IndexUniqueness) -> Self
Sets uniqueness metadata.
Sourcepub fn columns(&self) -> &[IndexColumn]
pub fn columns(&self) -> &[IndexColumn]
Returns indexed columns.
Sourcepub const fn uniqueness(&self) -> IndexUniqueness
pub const fn uniqueness(&self) -> IndexUniqueness
Returns uniqueness metadata.
Trait Implementations§
Source§impl Clone for IndexMetadata
impl Clone for IndexMetadata
Source§fn clone(&self) -> IndexMetadata
fn clone(&self) -> IndexMetadata
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 IndexMetadata
impl Debug for IndexMetadata
Source§impl PartialEq for IndexMetadata
impl PartialEq for IndexMetadata
Source§fn eq(&self, other: &IndexMetadata) -> bool
fn eq(&self, other: &IndexMetadata) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for IndexMetadata
impl StructuralPartialEq for IndexMetadata
Auto Trait Implementations§
impl Freeze for IndexMetadata
impl RefUnwindSafe for IndexMetadata
impl Send for IndexMetadata
impl Sync for IndexMetadata
impl Unpin for IndexMetadata
impl UnsafeUnpin for IndexMetadata
impl UnwindSafe for IndexMetadata
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