Struct migrant_lib::FnMigration
[−]
[src]
pub struct FnMigration<T, U> { pub tag: String, pub up: Option<T>, pub down: Option<U>, }
Fields
tag: String
up: Option<T>
down: Option<U>
Methods
impl<T, U> FnMigration<T, U> where
T: 'static + Clone + Fn(DbConn) -> Result<(), Box<Error>>,
U: 'static + Clone + Fn(DbConn) -> Result<(), Box<Error>>,
[src]
T: 'static + Clone + Fn(DbConn) -> Result<(), Box<Error>>,
U: 'static + Clone + Fn(DbConn) -> Result<(), Box<Error>>,
fn with_tag(tag: &str) -> Result<Self>
[src]
fn up(&mut self, f_up: T) -> &mut Self
[src]
fn down(&mut self, f_down: U) -> &mut Self
[src]
fn boxed(&self) -> Box<Migratable>
[src]
Trait Implementations
impl<T: Clone, U: Clone> Clone for FnMigration<T, U>
[src]
fn clone(&self) -> FnMigration<T, U>
[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
impl<T: Debug, U: Debug> Debug for FnMigration<T, U>
[src]
impl<T, U> Migratable for FnMigration<T, U> where
T: 'static + Clone + Fn(DbConn) -> Result<(), Box<Error>>,
U: 'static + Clone + Fn(DbConn) -> Result<(), Box<Error>>,
[src]
T: 'static + Clone + Fn(DbConn) -> Result<(), Box<Error>>,
U: 'static + Clone + Fn(DbConn) -> Result<(), Box<Error>>,