pub struct Unique { /* private fields */ }Expand description
Fails if another row in the DB already has col = value.
On edit, excludes the current record (matched by PK id).
Implementations§
Trait Implementations§
Source§impl AsyncValidator for Unique
impl AsyncValidator 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