Struct dbmigrate_lib::Migration[][src]

pub struct Migration {
    pub up: Option<MigrationFile>,
    pub down: Option<MigrationFile>,
}
Expand description

A migration has 2 files: one up and one down

Fields

up: Option<MigrationFile>

The Up file

down: Option<MigrationFile>

The Down file

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.