pub enum TypeAlterOpt {
Add {
value: DynIden,
placement: Option<TypeAlterAddOpt>,
if_not_exists: bool,
},
Rename(DynIden),
RenameValue(DynIden, DynIden),
}
Available on crate feature
backend-postgres
only.Variantsยง
Implementationsยง
sourceยงimpl TypeAlterOpt
impl TypeAlterOpt
sourcepub 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
sourcepub 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
sourcepub 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ยง
sourceยงimpl Clone for TypeAlterOpt
impl Clone for TypeAlterOpt
sourceยงfn clone(&self) -> TypeAlterOpt
fn clone(&self) -> TypeAlterOpt
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 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
sourceยงimpl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
sourceยงunsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
๐ฌThis is a nightly-only experimental API. (
clone_to_uninit
)