pub struct PveReplicationConfig {
pub network: Option<String>,
pub type: PveMigrationTypeEnum,
}Fields§
§network: Option<String>CIDR of the (sub) network that is used for replication jobs.
type: PveMigrationTypeEnumReplication traffic is encrypted using an SSH tunnel by default. On secure, completely private networks this can be disabled to increase performance.
Implementations§
Source§impl PveReplicationConfig
impl PveReplicationConfig
pub fn new(type: PveMigrationTypeEnum) -> PveReplicationConfig
Source§impl PveReplicationConfig
impl PveReplicationConfig
Sourcepub fn to_shorthand(&self) -> String
pub fn to_shorthand(&self) -> String
Serialise this PveReplicationConfig 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: PveReplicationConfig
→ "virtio,bridge=vmbr0"
Trait Implementations§
Source§impl Clone for PveReplicationConfig
impl Clone for PveReplicationConfig
Source§fn clone(&self) -> PveReplicationConfig
fn clone(&self) -> PveReplicationConfig
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 PveReplicationConfig
impl Debug for PveReplicationConfig
Source§impl Default for PveReplicationConfig
impl Default for PveReplicationConfig
Source§fn default() -> PveReplicationConfig
fn default() -> PveReplicationConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PveReplicationConfig
impl<'de> Deserialize<'de> for PveReplicationConfig
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 PveReplicationConfig
impl PartialEq for PveReplicationConfig
Source§fn eq(&self, other: &PveReplicationConfig) -> bool
fn eq(&self, other: &PveReplicationConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PveReplicationConfig
impl Serialize for PveReplicationConfig
impl StructuralPartialEq for PveReplicationConfig
Auto Trait Implementations§
impl Freeze for PveReplicationConfig
impl RefUnwindSafe for PveReplicationConfig
impl Send for PveReplicationConfig
impl Sync for PveReplicationConfig
impl Unpin for PveReplicationConfig
impl UnsafeUnpin for PveReplicationConfig
impl UnwindSafe for PveReplicationConfig
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