pub struct UniqueIndexSpec { /* private fields */ }Expand description
UniqueIndexSpec
Implementations§
Source§impl UniqueIndexSpec
impl UniqueIndexSpec
Sourcepub fn new<E: EntityKind>(index: &'static IndexSpec) -> Result<Self, Error>
pub fn new<E: EntityKind>(index: &'static IndexSpec) -> Result<Self, Error>
Wrap a unique index for the given entity type.
Sourcepub fn for_fields<E: EntityKind>(fields: &[&str]) -> Result<Self, Error>
pub fn for_fields<E: EntityKind>(fields: &[&str]) -> Result<Self, Error>
Resolve a unique index by its field list for the given entity type.
Trait Implementations§
Source§impl Clone for UniqueIndexSpec
impl Clone for UniqueIndexSpec
Source§fn clone(&self) -> UniqueIndexSpec
fn clone(&self) -> UniqueIndexSpec
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for UniqueIndexSpec
Auto Trait Implementations§
impl Freeze for UniqueIndexSpec
impl RefUnwindSafe for UniqueIndexSpec
impl Send for UniqueIndexSpec
impl Sync for UniqueIndexSpec
impl Unpin for UniqueIndexSpec
impl UnwindSafe for UniqueIndexSpec
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