pub struct IndexInfo {
pub name: String,
pub columns: Vec<IndexColumn>,
pub is_unique: bool,
pub is_primary: bool,
pub index_type: Option<String>,
pub filter: Option<String>,
}Expand description
Information about an index.
Fields§
§name: StringIndex name.
columns: Vec<IndexColumn>Columns in the index.
is_unique: boolWhether this is a unique index.
is_primary: boolWhether this is a primary key index.
index_type: Option<String>Index type (btree, hash, gin, etc.).
filter: Option<String>Filter condition (partial index).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for IndexInfo
impl<'de> Deserialize<'de> for IndexInfo
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
Auto Trait Implementations§
impl Freeze for IndexInfo
impl RefUnwindSafe for IndexInfo
impl Send for IndexInfo
impl Sync for IndexInfo
impl Unpin for IndexInfo
impl UnwindSafe for IndexInfo
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