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: DirectionDirection
number: i32Number
filename: StringFilename
name: StringActual 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