Struct migrant_lib::FileMigration
[−]
[src]
pub struct FileMigration { pub tag: String, pub up: Option<PathBuf>, pub down: Option<PathBuf>, pub stamp: Option<DateTime<Utc>>, }
Fields
tag: String
up: Option<PathBuf>
down: Option<PathBuf>
stamp: Option<DateTime<Utc>>
Methods
impl FileMigration
[src]
fn with_tag(tag: &str) -> Result<Self>
[src]
fn up<T: AsRef<Path>>(&mut self, up_file: T) -> Result<&mut Self>
[src]
fn down<T: AsRef<Path>>(&mut self, down_file: T) -> Result<&mut Self>
[src]
fn boxed(&self) -> Box<Migratable>
[src]
Trait Implementations
impl Clone for FileMigration
[src]
fn clone(&self) -> FileMigration
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more