Struct migration::TableIndex
pub struct TableIndex { /* private fields */ }
Expand description
Specification of a table index
Implementations§
§impl TableIndex
impl TableIndex
pub fn new() -> TableIndex
pub fn new() -> TableIndex
Construct a new table index
pub fn name(&mut self, name: &str) -> &mut TableIndex
pub fn name(&mut self, name: &str) -> &mut TableIndex
Set index name
pub fn col(&mut self, col: IndexColumn) -> &mut TableIndex
pub fn col(&mut self, col: IndexColumn) -> &mut TableIndex
Set index column
pub fn get_column_names(&self) -> Vec<String, Global>
pub fn take(&mut self) -> TableIndex
Trait Implementations§
§impl Clone for TableIndex
impl Clone for TableIndex
§fn clone(&self) -> TableIndex
fn clone(&self) -> TableIndex
Returns a copy 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 more§impl Debug for TableIndex
impl Debug for TableIndex
§impl Default for TableIndex
impl Default for TableIndex
§fn default() -> TableIndex
fn default() -> TableIndex
Returns the “default value” for a type. Read more