#[non_exhaustive]pub struct IndexEntity {
pub name: String,
pub type: String,
pub table_columns: Vec<String>,
pub unique: bool,
pub custom_features: Option<Struct>,
/* private fields */
}Expand description
Index is not used as an independent entity, it is retrieved as part of a Table entity.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringThe name of the index.
type: StringType of index, for example B-TREE.
table_columns: Vec<String>Table columns used as part of the Index, for example B-TREE index should list the columns which constitutes the index.
unique: boolBoolean value indicating whether the index is unique.
custom_features: Option<Struct>Custom engine specific features.
Implementations§
Source§impl IndexEntity
impl IndexEntity
pub fn new() -> Self
Sourcepub fn set_table_columns<T, V>(self, v: T) -> Self
pub fn set_table_columns<T, V>(self, v: T) -> Self
Sets the value of table_columns.
Sourcepub fn set_unique<T: Into<bool>>(self, v: T) -> Self
pub fn set_unique<T: Into<bool>>(self, v: T) -> Self
Sets the value of unique.
Sourcepub fn set_custom_features<T>(self, v: T) -> Self
pub fn set_custom_features<T>(self, v: T) -> Self
Sets the value of custom_features.
Sourcepub fn set_or_clear_custom_features<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_custom_features<T>(self, v: Option<T>) -> Self
Sets or clears the value of custom_features.
Trait Implementations§
Source§impl Clone for IndexEntity
impl Clone for IndexEntity
Source§fn clone(&self) -> IndexEntity
fn clone(&self) -> IndexEntity
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 IndexEntity
impl Debug for IndexEntity
Source§impl Default for IndexEntity
impl Default for IndexEntity
Source§fn default() -> IndexEntity
fn default() -> IndexEntity
Returns the “default value” for a type. Read more
Source§impl Message for IndexEntity
impl Message for IndexEntity
Source§impl PartialEq for IndexEntity
impl PartialEq for IndexEntity
impl StructuralPartialEq for IndexEntity
Auto Trait Implementations§
impl Freeze for IndexEntity
impl RefUnwindSafe for IndexEntity
impl Send for IndexEntity
impl Sync for IndexEntity
impl Unpin for IndexEntity
impl UnwindSafe for IndexEntity
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