pub struct AppliedMigration {
pub version: i64,
pub description: String,
pub content: String,
pub duration_ms: i64,
pub applied_at: DateTime<Utc>,
}
Expand description
An AppliedMigration
is the information about a migration that completed
successfully and it is also a row in the schema history table.
Fields§
§version: i64
The migration version.
description: String
The description of the migration.
content: String
The contents of the migration file at the time it was applied.
duration_ms: i64
How long the migration took to run in milliseconds.
applied_at: DateTime<Utc>
The timestamp of when the migration was applied.
Implementations§
Trait Implementations§
Source§impl Clone for AppliedMigration
impl Clone for AppliedMigration
Source§fn clone(&self) -> AppliedMigration
fn clone(&self) -> AppliedMigration
Returns a copy 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 moreAuto Trait Implementations§
impl Freeze for AppliedMigration
impl RefUnwindSafe for AppliedMigration
impl Send for AppliedMigration
impl Sync for AppliedMigration
impl Unpin for AppliedMigration
impl UnwindSafe for AppliedMigration
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