pub struct IndexSnapshot {
pub name: String,
pub columns: Vec<String>,
pub unique: bool,
pub index_type: IndexType,
pub condition: Option<String>,
}Expand description
A snapshot of a database index.
Fields§
§name: StringIndex name.
columns: Vec<String>Columns covered by the index.
unique: boolWhether this is a UNIQUE index.
index_type: IndexTypeIndex type (BTree, Hash, etc.).
condition: Option<String>Partial index condition (WHERE clause), if any.
Trait Implementations§
Source§impl Clone for IndexSnapshot
impl Clone for IndexSnapshot
Source§fn clone(&self) -> IndexSnapshot
fn clone(&self) -> IndexSnapshot
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 IndexSnapshot
impl Debug for IndexSnapshot
Source§impl PartialEq for IndexSnapshot
impl PartialEq for IndexSnapshot
impl Eq for IndexSnapshot
impl StructuralPartialEq for IndexSnapshot
Auto Trait Implementations§
impl Freeze for IndexSnapshot
impl RefUnwindSafe for IndexSnapshot
impl Send for IndexSnapshot
impl Sync for IndexSnapshot
impl Unpin for IndexSnapshot
impl UnsafeUnpin for IndexSnapshot
impl UnwindSafe for IndexSnapshot
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