pub enum SchemaMigrationTransform {
Fill {
to: FieldSourceKey,
literal: ScalarLiteral,
},
Copy {
from: FieldSourceKey,
to: FieldSourceKey,
},
CheckedCast {
from: FieldSourceKey,
to: FieldSourceKey,
target: ScalarType,
},
Coalesce {
from: FieldSourceKey,
to: FieldSourceKey,
literal: ScalarLiteral,
},
}Expand description
One closed deterministic historical-row transform declaration.
Variants§
Fill
Fill one current target field with one exact typed literal.
Copy
Copy one accepted-before field into one distinct current target field.
CheckedCast
Convert one scalar through the closed exact checked-cast matrix.
Fields
§
from: FieldSourceKeyAccepted-before source field.
§
to: FieldSourceKeyCurrent target field.
§
target: ScalarTypeExact current target scalar contract.
Coalesce
Preserve a non-null predecessor value or use one exact fallback.
Fields
§
from: FieldSourceKeyAccepted-before optional source field.
§
to: FieldSourceKeyCurrent required target field.
§
literal: ScalarLiteralExact fallback literal.
Implementations§
Source§impl SchemaMigrationTransform
impl SchemaMigrationTransform
Sourcepub const fn target(&self) -> &FieldSourceKey
pub const fn target(&self) -> &FieldSourceKey
Borrow the current target field.
Trait Implementations§
Source§impl Clone for SchemaMigrationTransform
impl Clone for SchemaMigrationTransform
Source§fn clone(&self) -> SchemaMigrationTransform
fn clone(&self) -> SchemaMigrationTransform
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 SchemaMigrationTransform
impl Debug for SchemaMigrationTransform
impl Eq for SchemaMigrationTransform
Source§impl PartialEq for SchemaMigrationTransform
impl PartialEq for SchemaMigrationTransform
impl StructuralPartialEq for SchemaMigrationTransform
Auto Trait Implementations§
impl Freeze for SchemaMigrationTransform
impl RefUnwindSafe for SchemaMigrationTransform
impl Send for SchemaMigrationTransform
impl Sync for SchemaMigrationTransform
impl Unpin for SchemaMigrationTransform
impl UnsafeUnpin for SchemaMigrationTransform
impl UnwindSafe for SchemaMigrationTransform
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.