pub struct IndexSnapshot {
pub name: String,
pub columns: Vec<String>,
pub unique: bool,
pub index_type: Option<String>,
}Expand description
Snapshot of an index
Fields§
§name: StringIndex name
columns: Vec<String>Column names in this index
unique: boolWhether index is unique
index_type: Option<String>Index type (e.g., “btree”, “hash”, “gin”)
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 (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 IndexSnapshot
impl Debug for IndexSnapshot
Source§impl<'de> Deserialize<'de> for IndexSnapshot
impl<'de> Deserialize<'de> for IndexSnapshot
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for IndexSnapshot
Source§impl PartialEq for IndexSnapshot
impl PartialEq for IndexSnapshot
Source§fn eq(&self, other: &IndexSnapshot) -> bool
fn eq(&self, other: &IndexSnapshot) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for IndexSnapshot
impl Serialize 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