pub enum IndexKind {
Auto,
UserDeclared,
}Expand description
How an index entered TableMeta.indexes. Auto indexes are synthesized
at CREATE TABLE time from PRIMARY KEY / UNIQUE constraints. UserDeclared
indexes come from CREATE INDEX DDL. The distinction drives surface
rendering (auto-indexes omitted from .schema), schema-rendering verbose
flags, and sync DDL emission (auto-indexes are not re-emitted since they
are derived from the CreateTable payload).
Variants§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for IndexKind
impl<'de> Deserialize<'de> for IndexKind
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 Copy for IndexKind
impl Eq for IndexKind
impl StructuralPartialEq for IndexKind
Auto Trait Implementations§
impl Freeze for IndexKind
impl RefUnwindSafe for IndexKind
impl Send for IndexKind
impl Sync for IndexKind
impl Unpin for IndexKind
impl UnsafeUnpin for IndexKind
impl UnwindSafe for IndexKind
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