pub struct Unique {
pub oid: u32,
pub name: String,
pub columns: Vec<usize>,
pub types: Vec<u32>,
pub shown: String,
pub nulls_not_distinct: bool,
pub derived: Option<Box<Derived>>,
pub deferrable: Option<Deferrable>,
}Expand description
A unique index of the target table, which _bt_check_unique checks for each new version of a row.
Fields§
§oid: u32The OID of the index.
name: StringThe name of the index, for the error.
columns: Vec<usize>The column of the table of each key column, from 0.
types: Vec<u32>The type of each key column.
shown: StringThe key columns as pg_get_indexdef_columns gives them, for the detail of the error.
nulls_not_distinct: boolindnullsnotdistinct: a null is equal to a null, so two keys with nulls can conflict.
derived: Option<Box<Derived>>The expressions and the predicate of an index with an expression or a predicate, or None for an index whose key is columns of the table.
deferrable: Option<Deferrable>The constraint of an index that is not indimmediate, or None for an index that checks each key at once.
Trait Implementations§
impl StructuralPartialEq for Unique
Auto Trait Implementations§
impl Freeze for Unique
impl RefUnwindSafe for Unique
impl Send for Unique
impl Sync for Unique
impl Unpin for Unique
impl UnsafeUnpin for Unique
impl UnwindSafe for Unique
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