pub struct UniqueFieldAttribute<'a>(/* private fields */);
Expand description
Options for a field-level unique attribute.
Implementations§
source§impl<'a> UniqueFieldAttribute<'a>
impl<'a> UniqueFieldAttribute<'a>
sourcepub fn sort_order(&mut self, value: impl Into<Cow<'a, str>>)
pub fn sort_order(&mut self, value: impl Into<Cow<'a, str>>)
Define the sort order of the inline field index.
ⓘ
@unique(sort: Asc)
// ^^^ here
sourcepub fn length(&mut self, length: u32)
pub fn length(&mut self, length: u32)
Define the length of the inline field index.
ⓘ
@unique(length: 32)
// ^^ here
Trait Implementations§
source§impl<'a> Debug for UniqueFieldAttribute<'a>
impl<'a> Debug for UniqueFieldAttribute<'a>
source§impl<'a> Default for UniqueFieldAttribute<'a>
impl<'a> Default for UniqueFieldAttribute<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for UniqueFieldAttribute<'a>
impl<'a> Send for UniqueFieldAttribute<'a>
impl<'a> Sync for UniqueFieldAttribute<'a>
impl<'a> Unpin for UniqueFieldAttribute<'a>
impl<'a> UnwindSafe for UniqueFieldAttribute<'a>
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