pub struct ClusterHaReadGetResourcesResponseData {
pub auto_rebalance: Option<PveBoolean>,
pub comment: Option<String>,
pub digest: String,
pub failback: Option<PveBoolean>,
pub group: Option<String>,
pub max_relocate: Option<i64>,
pub max_restart: Option<i64>,
pub sid: String,
pub state: Option<PveStateEnum>,
pub type: String,
}Fields§
§auto_rebalance: Option<PveBoolean>HA resource may be migrated during automatic rebalancing.
comment: Option<String>Description.
digest: StringCan be used to prevent concurrent modifications.
failback: Option<PveBoolean>The HA resource is automatically migrated to the node with the highest priority according to their node affinity rule, if a node with a higher priority than the current node comes online.
group: Option<String>The HA group identifier.
max_relocate: Option<i64>Maximal number of service relocate tries when a service fails to start.
max_restart: Option<i64>Maximal number of tries to restart the service on a node after its start failed.
sid: StringHA resource ID. This consists of a resource type followed by a resource specific name, separated with colon (example: vm:100 / ct:100). For virtual machines and containers, you can simply use the VM or CT id as a shortcut (example: 100).
state: Option<PveStateEnum>Requested resource state.
type: StringThe type of the resources.
Implementations§
Trait Implementations§
Source§impl Clone for ClusterHaReadGetResourcesResponseData
impl Clone for ClusterHaReadGetResourcesResponseData
Source§fn clone(&self) -> ClusterHaReadGetResourcesResponseData
fn clone(&self) -> ClusterHaReadGetResourcesResponseData
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for ClusterHaReadGetResourcesResponseData
impl Default for ClusterHaReadGetResourcesResponseData
Source§fn default() -> ClusterHaReadGetResourcesResponseData
fn default() -> ClusterHaReadGetResourcesResponseData
Source§impl<'de> Deserialize<'de> for ClusterHaReadGetResourcesResponseData
impl<'de> Deserialize<'de> for ClusterHaReadGetResourcesResponseData
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 ClusterHaReadGetResourcesResponseData
impl PartialEq for ClusterHaReadGetResourcesResponseData
Source§fn eq(&self, other: &ClusterHaReadGetResourcesResponseData) -> bool
fn eq(&self, other: &ClusterHaReadGetResourcesResponseData) -> bool
self and other values to be equal, and is used by ==.