pub struct Migration {
pub id: String,
pub path: PathBuf,
}Fields§
§id: String§path: PathBufImplementations§
Source§impl Migration
impl Migration
pub fn migrate_path(&self) -> PathBuf
pub fn revert_path(&self) -> PathBuf
pub fn migrate_sql(&self) -> Result<String>
pub fn revert_sql(&self) -> Result<String>
pub fn migrate_hash(&self) -> Result<String>
Trait Implementations§
impl Eq for Migration
impl StructuralPartialEq for Migration
Auto Trait Implementations§
impl Freeze for Migration
impl RefUnwindSafe for Migration
impl Send for Migration
impl Sync for Migration
impl Unpin for Migration
impl UnwindSafe for Migration
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.