pub enum SchemaMigrationRename {
Field {
from: FieldSourceKey,
to: FieldSourceKey,
},
NamedType {
from: TypeSourceKey,
to: TypeSourceKey,
},
EnumVariant {
named_type: TypeSourceKey,
from: TypeSourceKey,
to: TypeSourceKey,
},
RecordField {
named_type: TypeSourceKey,
from: FieldSourceKey,
to: FieldSourceKey,
},
Relation {
from: RelationSourceKey,
to: RelationSourceKey,
},
Constraint {
from: ConstraintSourceKey,
to: ConstraintSourceKey,
},
Rule {
named_type: TypeSourceKey,
from: RuleSourceKey,
to: RuleSourceKey,
},
}Expand description
One exact source-name correspondence applied simultaneously with its plan.
Variants§
Field
Rename one entity-local field.
Fields
from: FieldSourceKeyAccepted-before field name.
to: FieldSourceKeyCurrent target field name.
NamedType
Rename one named record, enum, newtype, or collection.
Fields
from: TypeSourceKeyAccepted-before named-type name.
to: TypeSourceKeyCurrent target named-type name.
EnumVariant
Rename one unit or payload enum variant below an accepted-before enum.
Fields
named_type: TypeSourceKeyAccepted-before owning enum name.
from: TypeSourceKeyAccepted-before variant name.
to: TypeSourceKeyCurrent target variant name.
RecordField
Rename one field below an accepted-before named record.
Fields
named_type: TypeSourceKeyAccepted-before owning record name.
from: FieldSourceKeyAccepted-before record-field name.
to: FieldSourceKeyCurrent target record-field name.
Relation
Rename one entity-local relation.
Fields
from: RelationSourceKeyAccepted-before relation name.
to: RelationSourceKeyCurrent target relation name.
Constraint
Rename one entity-local accepted constraint.
Fields
from: ConstraintSourceKeyAccepted-before constraint name.
to: ConstraintSourceKeyCurrent target constraint name.
Rule
Rename one durable rule below an accepted-before named type.
Fields
named_type: TypeSourceKeyAccepted-before owning named type.
from: RuleSourceKeyAccepted-before local rule name.
to: RuleSourceKeyCurrent target local rule name.
Trait Implementations§
Source§impl Clone for SchemaMigrationRename
impl Clone for SchemaMigrationRename
Source§fn clone(&self) -> SchemaMigrationRename
fn clone(&self) -> SchemaMigrationRename
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SchemaMigrationRename
impl Debug for SchemaMigrationRename
impl Eq for SchemaMigrationRename
Source§impl PartialEq for SchemaMigrationRename
impl PartialEq for SchemaMigrationRename
impl StructuralPartialEq for SchemaMigrationRename
Auto Trait Implementations§
impl Freeze for SchemaMigrationRename
impl RefUnwindSafe for SchemaMigrationRename
impl Send for SchemaMigrationRename
impl Sync for SchemaMigrationRename
impl Unpin for SchemaMigrationRename
impl UnsafeUnpin for SchemaMigrationRename
impl UnwindSafe for SchemaMigrationRename
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
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
key and return true if they are equal.