pub struct MigrationResult {
pub version: i64,
pub name: String,
pub success: bool,
pub error: Option<String>,
pub execution_time_ms: i64,
pub executed_at: DateTime<Utc>,
}
Expand description
Result of a single migration operation
Fields§
§version: i64
Migration version
name: String
Migration name
success: bool
Whether the operation was successful
error: Option<String>
Error message if failed
execution_time_ms: i64
Execution time in milliseconds
executed_at: DateTime<Utc>
Timestamp of execution
Implementations§
Trait Implementations§
Source§impl Clone for MigrationResult
impl Clone for MigrationResult
Source§fn clone(&self) -> MigrationResult
fn clone(&self) -> MigrationResult
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 MigrationResult
impl Debug for MigrationResult
Source§impl<'de> Deserialize<'de> for MigrationResult
impl<'de> Deserialize<'de> for MigrationResult
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for MigrationResult
impl RefUnwindSafe for MigrationResult
impl Send for MigrationResult
impl Sync for MigrationResult
impl Unpin for MigrationResult
impl UnwindSafe for MigrationResult
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