pub struct MigrationMeta {
pub name: String,
pub depends: Vec<String>,
pub author: Option<String>,
pub created: Option<String>,
}Expand description
Metadata for a named migration.
Fields§
§name: StringMigration name (e.g., “003_add_user_avatar”)
depends: Vec<String>Dependencies - migrations that must run before this one
Author of the migration
created: Option<String>Creation timestamp
Implementations§
Trait Implementations§
Source§impl Clone for MigrationMeta
impl Clone for MigrationMeta
Source§fn clone(&self) -> MigrationMeta
fn clone(&self) -> MigrationMeta
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MigrationMeta
impl Debug for MigrationMeta
Source§impl Default for MigrationMeta
impl Default for MigrationMeta
Source§fn default() -> MigrationMeta
fn default() -> MigrationMeta
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MigrationMeta
impl RefUnwindSafe for MigrationMeta
impl Send for MigrationMeta
impl Sync for MigrationMeta
impl Unpin for MigrationMeta
impl UnwindSafe for MigrationMeta
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