pub struct Index {
pub id: IndexId,
pub fields: Vec<IndexField>,
pub unique: bool,
pub primary_key: bool,
}Fields§
§id: IndexIdUniquely identifies the model index within the schema
fields: Vec<IndexField>Fields included in the index.
unique: boolWhen true, indexed entries are unique
primary_key: boolWhen true, the index is the primary key
Implementations§
Source§impl Index
impl Index
pub fn partition_fields(&self) -> &[IndexField]
pub fn local_fields(&self) -> &[IndexField]
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Index
impl RefUnwindSafe for Index
impl Send for Index
impl Sync for Index
impl Unpin for Index
impl UnwindSafe for Index
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