pub struct IndexEntity {
pub custom_features: Option<HashMap<String, Value>>,
pub name: Option<String>,
pub table_columns: Option<Vec<String>>,
pub table_columns_descending: Option<Vec<bool>>,
pub type_: Option<String>,
pub unique: Option<bool>,
}
Expand description
Index is not used as an independent entity, it is retrieved as part of a Table entity.
This type is not used in any activity, and only used as part of another schema.
Fields§
§custom_features: Option<HashMap<String, Value>>
Custom engine specific features.
name: Option<String>
The name of the index.
table_columns: Option<Vec<String>>
Table columns used as part of the Index, for example B-TREE index should list the columns which constitutes the index.
table_columns_descending: Option<Vec<bool>>
For each table_column, mark whether it’s sorting order is ascending (false) or descending (true). If no value is defined, assume all columns are sorted in ascending order. Otherwise, the number of items must match that of table_columns with each value specifying the direction of the matched column by its index.
type_: Option<String>
Type of index, for example B-TREE.
unique: Option<bool>
Boolean value indicating whether the index is unique.
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<'de> Deserialize<'de> for IndexEntity
impl<'de> Deserialize<'de> for IndexEntity
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 Serialize for IndexEntity
impl Serialize for IndexEntity
impl Part 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more