pub enum AlterTableBody {
RenameTo(Name),
AddColumn(ColumnDefinition),
RenameColumn {
old: Name,
new: Name,
},
DropColumn(Name),
}Expand description
ALTER TABLE body
Variants§
RenameTo(Name)
RENAME TO: new table name
AddColumn(ColumnDefinition)
ADD COLUMN
RenameColumn
RENAME COLUMN
DropColumn(Name)
DROP COLUMN
Trait Implementations§
Source§impl Clone for AlterTableBody
impl Clone for AlterTableBody
Source§fn clone(&self) -> AlterTableBody
fn clone(&self) -> AlterTableBody
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AlterTableBody
impl Debug for AlterTableBody
impl Eq for AlterTableBody
Source§impl PartialEq for AlterTableBody
impl PartialEq for AlterTableBody
impl StructuralPartialEq for AlterTableBody
Source§impl ToTokens for AlterTableBody
impl ToTokens for AlterTableBody
Source§fn to_tokens_with_context<S: TokenStream + ?Sized, C: ToSqlContext>(
&self,
s: &mut S,
context: &C,
) -> Result<(), S::Error>
fn to_tokens_with_context<S: TokenStream + ?Sized, C: ToSqlContext>( &self, s: &mut S, context: &C, ) -> Result<(), S::Error>
Send token(s) to the specified stream with context
Source§fn to_tokens<S: TokenStream + ?Sized>(&self, s: &mut S) -> Result<(), S::Error>
fn to_tokens<S: TokenStream + ?Sized>(&self, s: &mut S) -> Result<(), S::Error>
Send token(s) to the specified stream
Source§fn to_fmt_with_context<C: ToSqlContext>(
&self,
f: &mut Formatter<'_>,
context: &C,
) -> Result
fn to_fmt_with_context<C: ToSqlContext>( &self, f: &mut Formatter<'_>, context: &C, ) -> Result
Format AST node with context
Source§fn format_with_context<C: ToSqlContext>(
&self,
context: &C,
) -> Result<String, Error>
fn format_with_context<C: ToSqlContext>( &self, context: &C, ) -> Result<String, Error>
Format AST node to string with context
Auto Trait Implementations§
impl Freeze for AlterTableBody
impl RefUnwindSafe for AlterTableBody
impl Send for AlterTableBody
impl Sync for AlterTableBody
impl Unpin for AlterTableBody
impl UnsafeUnpin for AlterTableBody
impl UnwindSafe for AlterTableBody
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.