pub struct Migration {
pub migration_id: String,
pub source: MigrationEndpoint,
pub target: MigrationEndpoint,
pub status: String,
pub progress: Option<f32>,
pub start_time: Option<String>,
pub end_time: Option<String>,
pub error: Option<String>,
pub extra: Value,
}
Expand description
Migration task
Fields§
§migration_id: String
Unique identifier for this migration task
source: MigrationEndpoint
Source endpoint configuration
target: MigrationEndpoint
Target endpoint configuration
status: String
Sync status of this migration (e.g., “syncing”, “in-sync”, “out-of-sync”)
progress: Option<f32>
Migration progress as a percentage (0.0-1.0)
start_time: Option<String>
Timestamp when migration started
end_time: Option<String>
Timestamp when migration completed
error: Option<String>
Error message if migration failed
extra: Value
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Migration
impl<'de> Deserialize<'de> for Migration
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 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