pub struct IndexSpec {
pub name: &'static str,
pub columns: &'static [&'static str],
pub unique: bool,
}Expand description
A secondary index over one or more columns, produced as a separate
CREATE [UNIQUE] INDEX. Single-column indexes come from #[orm(index)]
on a field; composite ones from #[orm(index = "a, b")] /
#[orm(unique = "a, b")] on the struct.
Fields§
§name: &'static str§columns: &'static [&'static str]§unique: boolTrait Implementations§
Auto Trait Implementations§
impl Freeze for IndexSpec
impl RefUnwindSafe for IndexSpec
impl Send for IndexSpec
impl Sync for IndexSpec
impl Unpin for IndexSpec
impl UnsafeUnpin for IndexSpec
impl UnwindSafe for IndexSpec
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