Struct sea_orm_migration::prelude::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>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
A: Allocator,
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 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl 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
Auto Trait Implementations
impl !RefUnwindSafe for TableIndex
impl Send for TableIndex
impl Sync for TableIndex
impl Unpin for TableIndex
impl !UnwindSafe for TableIndex
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more