pub enum Operation {
CreateModel {
name: String,
fields: Vec<Field>,
},
RenameModel {
old: String,
new: String,
},
DeleteModel {
name: String,
},
CreateField {
model: String,
field: Field,
},
RenameField {
table_name: String,
old: String,
new: String,
},
DeleteField {
model: String,
name: String,
},
RawSQL {
structure_safe: bool,
sqlite: String,
postgres: String,
mysql: String,
},
}
Expand description
The representation for all possible database operations
Variants§
CreateModel
Representation of a CreateModel operation
RenameModel
Representation of a RenameModel operation
DeleteModel
Representation of a DeleteModel operation
CreateField
Representation of a CreateField operation
RenameField
Representation of a RenameField operation
Fields
DeleteField
Representation of a DeleteField operation
RawSQL
Representation of a RawSQL operation
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Operation
impl<'de> Deserialize<'de> for Operation
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
Auto Trait Implementations§
impl Freeze for Operation
impl RefUnwindSafe for Operation
impl Send for Operation
impl Sync for Operation
impl Unpin for Operation
impl UnwindSafe for Operation
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