Struct dbmigrate_lib::MigrationFile[][src]

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

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.