pub struct IndexData {
    pub name: &'static str,
    pub priority: Option<i32>,
}
Expand description

Represents a complex index

Fields

name: &'static str

Name of the index. Can be used multiple times in a model to create an index with multiple columns.

priority: Option<i32>

The order to put the columns in while generating an index. Only useful if multiple columns with the same name are present.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.