Struct migrant_lib::FnMigration [] [src]

pub struct FnMigration<T, U> {
    pub tag: String,
    pub up: Option<T>,
    pub down: Option<U>,
}

Fields

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]

[src]

[src]

[src]

[src]

Trait Implementations

impl<T: Clone, U: Clone> Clone for FnMigration<T, U>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<T: Debug, U: Debug> Debug for FnMigration<T, U>
[src]

[src]

Formats the value using the given formatter.

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]

[src]

[src]

[src]

[src]