Struct IndexMetadata
pub struct IndexMetadata { /* private fields */ }Expand description
Index metadata.
Implementations§
§impl IndexMetadata
impl IndexMetadata
pub const fn new(reference: IndexRef) -> IndexMetadata
pub const fn new(reference: IndexRef) -> IndexMetadata
Creates index metadata.
pub const fn with_kind(self, kind: IndexKind) -> IndexMetadata
pub const fn with_kind(self, kind: IndexKind) -> IndexMetadata
Sets the index kind.
pub fn with_columns(self, columns: Vec<IndexColumn>) -> IndexMetadata
pub fn with_columns(self, columns: Vec<IndexColumn>) -> IndexMetadata
Sets indexed columns.
pub const fn with_uniqueness(self, uniqueness: IndexUniqueness) -> IndexMetadata
pub const fn with_uniqueness(self, uniqueness: IndexUniqueness) -> IndexMetadata
Sets uniqueness metadata.
pub fn columns(&self) -> &[IndexColumn]
pub fn columns(&self) -> &[IndexColumn]
Returns indexed columns.
pub const fn uniqueness(&self) -> IndexUniqueness
pub const fn uniqueness(&self) -> IndexUniqueness
Returns uniqueness metadata.
Trait Implementations§
§impl Clone for IndexMetadata
impl Clone for IndexMetadata
§fn clone(&self) -> IndexMetadata
fn clone(&self) -> IndexMetadata
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 more§impl Debug for IndexMetadata
impl Debug for IndexMetadata
§impl PartialEq for IndexMetadata
impl PartialEq for IndexMetadata
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