pub struct IndexLayout {
pub name: String,
pub index_type: u8,
pub unique: bool,
pub columns: Vec<String>,
}Expand description
Plain, engine-agnostic view of a persisted index definition.
Fields§
§name: StringIndex name.
index_type: u8IndexType discriminant byte.
unique: boolWhether the index is unique.
columns: Vec<String>Indexed column names in order.
Trait Implementations§
Source§impl Clone for IndexLayout
impl Clone for IndexLayout
Source§fn clone(&self) -> IndexLayout
fn clone(&self) -> IndexLayout
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 IndexLayout
impl Debug for IndexLayout
Source§impl PartialEq for IndexLayout
impl PartialEq for IndexLayout
Source§fn eq(&self, other: &IndexLayout) -> bool
fn eq(&self, other: &IndexLayout) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for IndexLayout
Auto Trait Implementations§
impl Freeze for IndexLayout
impl RefUnwindSafe for IndexLayout
impl Send for IndexLayout
impl Sync for IndexLayout
impl Unpin for IndexLayout
impl UnsafeUnpin for IndexLayout
impl UnwindSafe for IndexLayout
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