pub struct SendMigrationData {
pub destination_url: String,
pub local: Option<bool>,
pub downtime_ms: Option<i64>,
pub timeout_s: Option<i64>,
pub timeout_strategy: Option<TimeoutStrategy>,
pub connections: Option<i64>,
}Fields§
§destination_url: String§local: Option<bool>§downtime_ms: Option<i64>The maximum downtime the migration aims for, in milliseconds. Defaults to 300ms.
timeout_s: Option<i64>The timeout for the migration (maximum total duration), in seconds. Defaults to 3600s (one hour).
timeout_strategy: Option<TimeoutStrategy>§connections: Option<i64>The number of parallel TCP connections to use for migration. Must be between 1 and 128. Multiple connections are not supported with local UNIX-socket migration.
Implementations§
Source§impl SendMigrationData
impl SendMigrationData
pub fn new(destination_url: String) -> SendMigrationData
Trait Implementations§
Source§impl Clone for SendMigrationData
impl Clone for SendMigrationData
Source§fn clone(&self) -> SendMigrationData
fn clone(&self) -> SendMigrationData
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 SendMigrationData
impl Debug for SendMigrationData
Source§impl Default for SendMigrationData
impl Default for SendMigrationData
Source§fn default() -> SendMigrationData
fn default() -> SendMigrationData
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SendMigrationData
impl<'de> Deserialize<'de> for SendMigrationData
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
Source§impl PartialEq for SendMigrationData
impl PartialEq for SendMigrationData
Source§impl Serialize for SendMigrationData
impl Serialize for SendMigrationData
impl StructuralPartialEq for SendMigrationData
Auto Trait Implementations§
impl Freeze for SendMigrationData
impl RefUnwindSafe for SendMigrationData
impl Send for SendMigrationData
impl Sync for SendMigrationData
impl Unpin for SendMigrationData
impl UnsafeUnpin for SendMigrationData
impl UnwindSafe for SendMigrationData
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