pub struct IndexSchema {
pub name: String,
pub columns: Vec<String>,
pub unique: bool,
}Expand description
Index definition
Fields§
§name: StringIndex name
columns: Vec<String>Columns in the index
unique: boolWhether this is a unique index
Implementations§
Trait Implementations§
Source§impl Clone for IndexSchema
impl Clone for IndexSchema
Source§fn clone(&self) -> IndexSchema
fn clone(&self) -> IndexSchema
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 IndexSchema
impl Debug for IndexSchema
Source§impl<'de> Deserialize<'de> for IndexSchema
impl<'de> Deserialize<'de> for IndexSchema
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 PartialEq for IndexSchema
impl PartialEq for IndexSchema
Source§impl Serialize for IndexSchema
impl Serialize for IndexSchema
impl Eq for IndexSchema
impl StructuralPartialEq for IndexSchema
Auto Trait Implementations§
impl Freeze for IndexSchema
impl RefUnwindSafe for IndexSchema
impl Send for IndexSchema
impl Sync for IndexSchema
impl Unpin for IndexSchema
impl UnwindSafe for IndexSchema
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