pub enum DiffOp {
AddColumn(DeclaredColumnContract),
DropColumn(String),
TypeChange {
name: String,
from: DeclaredColumnContract,
to: Box<DeclaredColumnContract>,
},
}Expand description
One operation in a schema diff.
Variants§
AddColumn(DeclaredColumnContract)
Column present in target but not in current.
DropColumn(String)
Column present in current but not in target.
TypeChange
Same name, different shape — emitted as a single
TypeChange so callers can render DROP + ADD or a
future ALTER COLUMN ... TYPE ... form.
Trait Implementations§
Auto Trait Implementations§
impl Forget for DiffOp
impl Freeze for DiffOpwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<TypeModifier>: Freeze,
*const ArcInner<str> is !null: Freeze,
PhantomData<ArcInner<str>>: Freeze,
*const ArcInner<Expr> is !null: Freeze,
PhantomData<ArcInner<Expr>>: Freeze,
*const ArcInner<[String]> is !null: Freeze,
PhantomData<ArcInner<[String]>>: Freeze,
PhantomData<String>: Freeze,
*const DeclaredColumnContract is !null: Freeze,
PhantomData<DeclaredColumnContract>: Freeze,
impl Move for DiffOp
impl RefUnwindSafe for DiffOp
impl Send for DiffOp
impl Sync for DiffOp
impl Unpin for DiffOp
impl UnsafeUnpin for DiffOpwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<TypeModifier>: UnsafeUnpin,
*const ArcInner<str> is !null: UnsafeUnpin,
PhantomData<ArcInner<str>>: UnsafeUnpin,
*const ArcInner<Expr> is !null: UnsafeUnpin,
PhantomData<ArcInner<Expr>>: UnsafeUnpin,
*const ArcInner<[String]> is !null: UnsafeUnpin,
PhantomData<ArcInner<[String]>>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
*const DeclaredColumnContract is !null: UnsafeUnpin,
PhantomData<DeclaredColumnContract>: UnsafeUnpin,
impl UnwindSafe for DiffOpwhere
RawVecInner: UnwindSafe,
BoxRaw<SqlTypeName>: UnwindSafe,
Arc<str>: UnwindSafe,
Arc<Expr>: UnwindSafe,
Arc<[String]>: UnwindSafe,
BoxRaw<DeclaredColumnContract>: UnwindSafe,
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request