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 more