pub struct Migration {
pub hash: String,
pub initial: bool,
pub id: u16,
pub name: String,
pub dependency: Option<u16>,
pub replaces: Vec<u16>,
pub operations: Vec<Operation>,
}
Expand description
Representation for a migration.
Fields§
§hash: String
Hash of the migration
initial: bool
Marks the migration initial state
id: u16
ID of the migration, derived from filename
name: String
Name of the migration, derived from filename
dependency: Option<u16>
Migration this migration depends on
replaces: Vec<u16>
List of migrations this migration replaces
operations: Vec<Operation>
The operations to execute
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Migration
impl<'de> Deserialize<'de> for Migration
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 Migration
impl RefUnwindSafe for Migration
impl Send for Migration
impl Sync for Migration
impl Unpin for Migration
impl UnwindSafe for Migration
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