pub struct IndexValue {
pub name: String,
pub priority: Option<i32>,
}
Expand description
Represents a complex index
Fields§
§name: String
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.
Trait Implementations§
Source§impl Clone for IndexValue
impl Clone for IndexValue
Source§fn clone(&self) -> IndexValue
fn clone(&self) -> IndexValue
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for IndexValue
impl Debug for IndexValue
Source§impl<'de> Deserialize<'de> for IndexValue
impl<'de> Deserialize<'de> for IndexValue
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
Source§impl Hash for IndexValue
impl Hash for IndexValue
Source§impl PartialEq for IndexValue
impl PartialEq for IndexValue
Source§impl Serialize for IndexValue
impl Serialize for IndexValue
impl Eq for IndexValue
impl StructuralPartialEq for IndexValue
Auto Trait Implementations§
impl Freeze for IndexValue
impl RefUnwindSafe for IndexValue
impl Send for IndexValue
impl Sync for IndexValue
impl Unpin for IndexValue
impl UnwindSafe for IndexValue
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