pub struct PveMigrationConfig {
pub network: Option<String>,
pub type: PveMigrationTypeEnum,
}Fields§
§network: Option<String>CIDR of the (sub) network that is used for migration. Used as a fallback for replications jobs if the replication network setting is not set
type: PveMigrationTypeEnumMigration traffic is encrypted using an SSH tunnel by default. On secure, completely private networks this can be disabled to increase performance.
Implementations§
Source§impl PveMigrationConfig
impl PveMigrationConfig
pub fn new(type: PveMigrationTypeEnum) -> PveMigrationConfig
Source§impl PveMigrationConfig
impl PveMigrationConfig
Sourcepub fn to_shorthand(&self) -> String
pub fn to_shorthand(&self) -> String
Serialise this PveMigrationConfig into Proxmox’s CLI-style shorthand
string (key=value,…). The property marked x-pve-default-key
is emitted positionally without a key= prefix; aliases collapse
multiple property names to the same wire key.
Example: PveMigrationConfig
→ "virtio,bridge=vmbr0"
Trait Implementations§
Source§impl Clone for PveMigrationConfig
impl Clone for PveMigrationConfig
Source§fn clone(&self) -> PveMigrationConfig
fn clone(&self) -> PveMigrationConfig
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 PveMigrationConfig
impl Debug for PveMigrationConfig
Source§impl Default for PveMigrationConfig
impl Default for PveMigrationConfig
Source§fn default() -> PveMigrationConfig
fn default() -> PveMigrationConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PveMigrationConfig
impl<'de> Deserialize<'de> for PveMigrationConfig
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 PveMigrationConfig
impl PartialEq for PveMigrationConfig
Source§fn eq(&self, other: &PveMigrationConfig) -> bool
fn eq(&self, other: &PveMigrationConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PveMigrationConfig
impl Serialize for PveMigrationConfig
impl StructuralPartialEq for PveMigrationConfig
Auto Trait Implementations§
impl Freeze for PveMigrationConfig
impl RefUnwindSafe for PveMigrationConfig
impl Send for PveMigrationConfig
impl Sync for PveMigrationConfig
impl Unpin for PveMigrationConfig
impl UnsafeUnpin for PveMigrationConfig
impl UnwindSafe for PveMigrationConfig
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