Struct Unique
pub struct Unique {
pub name: String,
pub columns: Vec<String>,
pub is_partial: bool,
}Expand description
That each set of values for these columns must be unique across the whole table
Fields§
§name: String§columns: Vec<String>§is_partial: boolImplementations§
§impl Unique
impl Unique
pub fn write(&self) -> IndexCreateStatement
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 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