#[non_exhaustive]pub struct MigrationTimingArgs {
pub elapsed_seconds: i64,
pub name: String,
}Expand description
How long one migration took.
JSON schema
{
"description": "How long one migration took.",
"type": "object",
"required": [
"elapsed_seconds",
"name"
],
"properties": {
"elapsed_seconds": {
"description": "Whole seconds it took.",
"type": "integer",
"format": "int64"
},
"name": {
"description": "The migration's name, as the migration runner reports it.",
"type": "string"
}
}
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.elapsed_seconds: i64Whole seconds it took.
name: StringThe migration’s name, as the migration runner reports it.
Implementations§
Source§impl MigrationTimingArgs
impl MigrationTimingArgs
Sourcepub fn builder() -> MigrationTimingArgsBuilder
pub fn builder() -> MigrationTimingArgsBuilder
Create an instance of MigrationTimingArgs using the builder syntax
Trait Implementations§
Source§impl Clone for MigrationTimingArgs
impl Clone for MigrationTimingArgs
Source§fn clone(&self) -> MigrationTimingArgs
fn clone(&self) -> MigrationTimingArgs
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MigrationTimingArgs
impl Debug for MigrationTimingArgs
Source§impl<'de> Deserialize<'de> for MigrationTimingArgs
impl<'de> Deserialize<'de> for MigrationTimingArgs
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 MigrationTimingArgs
impl RefUnwindSafe for MigrationTimingArgs
impl Send for MigrationTimingArgs
impl Sync for MigrationTimingArgs
impl Unpin for MigrationTimingArgs
impl UnsafeUnpin for MigrationTimingArgs
impl UnwindSafe for MigrationTimingArgs
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