Enum TypeAlterOpt
#[non_exhaustive]pub enum TypeAlterOpt {
Add {
value: DynIden,
placement: Option<TypeAlterAddOpt>,
if_not_exists: bool,
},
Rename(DynIden),
RenameValue(DynIden, DynIden),
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations§
§impl TypeAlterOpt
impl TypeAlterOpt
pub fn before<T>(self, value: T) -> Selfwhere
T: IntoIden,
pub fn before<T>(self, value: T) -> Selfwhere
T: IntoIden,
Changes only ADD VALUE x options into ADD VALUE x BEFORE options, does nothing otherwise
pub fn after<T>(self, value: T) -> Selfwhere
T: IntoIden,
pub fn after<T>(self, value: T) -> Selfwhere
T: IntoIden,
Changes only ADD VALUE x options into ADD VALUE x AFTER options, does nothing otherwise
pub fn if_not_exists(self) -> Self
pub fn if_not_exists(self) -> Self
Changes only ADD VALUE x options into ADD VALUE IF NOT EXISTS x options, does nothing otherwise
Trait Implementations§
§impl Clone for TypeAlterOpt
impl Clone for TypeAlterOpt
§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