pub struct MigrationFile {
pub content: Option<String>,
pub direction: Direction,
pub number: i32,
pub filename: String,
pub name: String,
}
Expand description
A single direction migration file
Fields§
§content: Option<String>
Content of the file
direction: Direction
Direction
number: i32
Number
filename: String
Filename
name: String
Actual migration name (filename with number removed)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MigrationFile
impl RefUnwindSafe for MigrationFile
impl Send for MigrationFile
impl Sync for MigrationFile
impl Unpin for MigrationFile
impl UnwindSafe for MigrationFile
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