pub enum Uniqueness {
Unique,
Duplicates,
}Expand description
Whether a CREATE INDEX declared UNIQUE.
An enum rather than a bool beside another bool (task-1962, A9).
bind_create_index took unique and if_not_exists adjacent and
positional; swapping them compiles and declares a unique index where the
statement asked for IF NOT EXISTS.
Variants§
Unique
CREATE UNIQUE INDEX: two rows may not share a key.
Duplicates
CREATE INDEX: a key may repeat.
Trait Implementations§
Source§impl Clone for Uniqueness
impl Clone for Uniqueness
impl Copy for Uniqueness
Source§impl Debug for Uniqueness
impl Debug for Uniqueness
impl Eq for Uniqueness
Source§impl PartialEq for Uniqueness
impl PartialEq for Uniqueness
impl StructuralPartialEq for Uniqueness
Auto Trait Implementations§
impl Freeze for Uniqueness
impl RefUnwindSafe for Uniqueness
impl Send for Uniqueness
impl Sync for Uniqueness
impl Unpin for Uniqueness
impl UnsafeUnpin for Uniqueness
impl UnwindSafe for Uniqueness
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