pub struct Index {
pub id: IndexId,
pub name: String,
pub on: TableId,
pub columns: Vec<IndexColumn>,
pub unique: bool,
pub primary_key: bool,
}Fields§
§id: IndexIdUniquely identifies the index within the schema
name: StringIndex name is unique within the schema
on: TableIdThe table being indexed
columns: Vec<IndexColumn>Fields included in the index.
unique: boolWhen true, indexed entries are unique
primary_key: boolWhen true, the index indexes the model’s primary key fields.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Index
impl<'de> Deserialize<'de> for Index
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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