pub enum TypeAlterOpt {
Add {
value: SeaRc<dyn Iden>,
placement: Option<TypeAlterAddOpt>,
if_not_exists: bool,
},
Rename(SeaRc<dyn Iden>),
RenameValue(SeaRc<dyn Iden>, SeaRc<dyn Iden>),
}Variants§
Implementations§
Source§impl TypeAlterOpt
impl TypeAlterOpt
Sourcepub fn before<T>(self, value: T) -> TypeAlterOptwhere
T: IntoIden,
pub fn before<T>(self, value: T) -> TypeAlterOptwhere
T: IntoIden,
Changes only ADD VALUE x options into ADD VALUE x BEFORE options, does nothing otherwise
Sourcepub fn after<T>(self, value: T) -> TypeAlterOptwhere
T: IntoIden,
pub fn after<T>(self, value: T) -> TypeAlterOptwhere
T: IntoIden,
Changes only ADD VALUE x options into ADD VALUE x AFTER options, does nothing otherwise
Sourcepub fn if_not_exists(self) -> TypeAlterOpt
pub fn if_not_exists(self) -> TypeAlterOpt
Changes only ADD VALUE x options into ADD VALUE IF NOT EXISTS x options, does nothing otherwise
Trait Implementations§
Source§impl Clone for TypeAlterOpt
impl Clone for TypeAlterOpt
Source§fn clone(&self) -> TypeAlterOpt
fn clone(&self) -> TypeAlterOpt
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 moreAuto Trait Implementations§
impl Freeze for TypeAlterOpt
impl !RefUnwindSafe for TypeAlterOpt
impl Send for TypeAlterOpt
impl Sync for TypeAlterOpt
impl Unpin for TypeAlterOpt
impl !UnwindSafe for TypeAlterOpt
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