pub enum SchemaMigrationStep {
AddType {
type_kind: SchemaTypeKind,
name: String,
},
RenameType {
type_kind: SchemaTypeKind,
from: String,
to: String,
},
AddProperty {
type_kind: SchemaTypeKind,
type_name: String,
property_name: String,
property_type: PropType,
},
RenameProperty {
type_kind: SchemaTypeKind,
type_name: String,
from: String,
to: String,
},
AddConstraint {
type_kind: SchemaTypeKind,
type_name: String,
constraint: Constraint,
},
UpdateTypeMetadata {
type_kind: SchemaTypeKind,
name: String,
annotations: Vec<Annotation>,
},
UpdatePropertyMetadata {
type_kind: SchemaTypeKind,
type_name: String,
property_name: String,
annotations: Vec<Annotation>,
},
UnsupportedChange {
entity: String,
reason: String,
},
}Variants§
AddType
RenameType
AddProperty
RenameProperty
AddConstraint
UpdateTypeMetadata
UpdatePropertyMetadata
UnsupportedChange
Trait Implementations§
Source§impl Clone for SchemaMigrationStep
impl Clone for SchemaMigrationStep
Source§fn clone(&self) -> SchemaMigrationStep
fn clone(&self) -> SchemaMigrationStep
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 SchemaMigrationStep
impl Debug for SchemaMigrationStep
Source§impl<'de> Deserialize<'de> for SchemaMigrationStep
impl<'de> Deserialize<'de> for SchemaMigrationStep
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SchemaMigrationStep
impl PartialEq for SchemaMigrationStep
Source§fn eq(&self, other: &SchemaMigrationStep) -> bool
fn eq(&self, other: &SchemaMigrationStep) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SchemaMigrationStep
impl Serialize for SchemaMigrationStep
impl StructuralPartialEq for SchemaMigrationStep
Auto Trait Implementations§
impl Freeze for SchemaMigrationStep
impl RefUnwindSafe for SchemaMigrationStep
impl Send for SchemaMigrationStep
impl Sync for SchemaMigrationStep
impl Unpin for SchemaMigrationStep
impl UnsafeUnpin for SchemaMigrationStep
impl UnwindSafe for SchemaMigrationStep
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