pub struct PveErasureCodingConfig {
pub device_class: Option<String>,
pub failure_domain: Option<String>,
pub k: i64,
pub m: i64,
pub profile: Option<String>,
}Fields§
§device_class: Option<String>CRUSH device class. Will create an erasure coded pool plus a replicated pool for metadata.
failure_domain: Option<String>CRUSH failure domain. Default is ‘host’. Will create an erasure coded pool plus a replicated pool for metadata.
k: i64Number of data chunks. Will create an erasure coded pool plus a replicated pool for metadata.
m: i64Number of coding chunks. Will create an erasure coded pool plus a replicated pool for metadata.
profile: Option<String>Override the erasure code (EC) profile to use. Will create an erasure coded pool plus a replicated pool for metadata.
Implementations§
Source§impl PveErasureCodingConfig
impl PveErasureCodingConfig
pub fn new(k: i64, m: i64) -> PveErasureCodingConfig
Source§impl PveErasureCodingConfig
impl PveErasureCodingConfig
Sourcepub fn to_shorthand(&self) -> String
pub fn to_shorthand(&self) -> String
Serialise this PveErasureCodingConfig 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: PveErasureCodingConfig
→ "virtio,bridge=vmbr0"
Trait Implementations§
Source§impl Clone for PveErasureCodingConfig
impl Clone for PveErasureCodingConfig
Source§fn clone(&self) -> PveErasureCodingConfig
fn clone(&self) -> PveErasureCodingConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PveErasureCodingConfig
impl Debug for PveErasureCodingConfig
Source§impl Default for PveErasureCodingConfig
impl Default for PveErasureCodingConfig
Source§fn default() -> PveErasureCodingConfig
fn default() -> PveErasureCodingConfig
Source§impl<'de> Deserialize<'de> for PveErasureCodingConfig
impl<'de> Deserialize<'de> for PveErasureCodingConfig
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>,
Source§impl PartialEq for PveErasureCodingConfig
impl PartialEq for PveErasureCodingConfig
Source§fn eq(&self, other: &PveErasureCodingConfig) -> bool
fn eq(&self, other: &PveErasureCodingConfig) -> bool
self and other values to be equal, and is used by ==.