pub struct UniqueDef {
pub columns: Vec<&'static str>,
pub owner: &'static str,
}Expand description
A unique constraint over several columns of one table, added with
SchemaBuilder::unique. A single unique column is ColumnDef::unique instead.
Fields§
§columns: Vec<&'static str>§owner: &'static strThe plugin id, "core" or "app".
Trait Implementations§
impl Eq for UniqueDef
impl StructuralPartialEq for UniqueDef
Auto Trait Implementations§
impl Forget for UniqueDef
impl Freeze for UniqueDef
impl Move for UniqueDef
impl RefUnwindSafe for UniqueDef
impl Send for UniqueDef
impl Sync for UniqueDef
impl Unpin for UniqueDef
impl UnsafeUnpin for UniqueDef
impl UnwindSafe for UniqueDef
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