pub struct IndexAttribute {
pub fields: Vec<String>,
pub name: Option<String>,
}Expand description
@@index([fields], name: "...") or @@unique([fields], name: "...").
name overrides the auto-generated index/constraint name.
Fields§
§fields: Vec<String>§name: Option<String>Trait Implementations§
Source§impl Clone for IndexAttribute
impl Clone for IndexAttribute
Source§fn clone(&self) -> IndexAttribute
fn clone(&self) -> IndexAttribute
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 moreAuto Trait Implementations§
impl Freeze for IndexAttribute
impl RefUnwindSafe for IndexAttribute
impl Send for IndexAttribute
impl Sync for IndexAttribute
impl Unpin for IndexAttribute
impl UnsafeUnpin for IndexAttribute
impl UnwindSafe for IndexAttribute
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