pub struct ClusterGetStatusResponseDataInner {
pub id: String,
pub ip: Option<String>,
pub level: Option<String>,
pub local: Option<PveBoolean>,
pub name: String,
pub nodeid: Option<i64>,
pub nodes: Option<i64>,
pub online: Option<PveBoolean>,
pub quorate: Option<PveBoolean>,
pub type: PveClusterTypeEnum3,
pub version: Option<i64>,
}Fields§
§id: String§ip: Option<String>[node] IP of the resolved nodename.
level: Option<String>[node] Proxmox VE Subscription level, indicates if eligible for enterprise support as well as access to the stable Proxmox VE Enterprise Repository.
local: Option<PveBoolean>[node] Indicates if this is the responding node.
name: String§nodeid: Option<i64>[node] ID of the node from the corosync configuration.
nodes: Option<i64>[cluster] Nodes count, including offline nodes.
online: Option<PveBoolean>[node] Indicates if the node is online or offline.
quorate: Option<PveBoolean>[cluster] Indicates if there is a majority of nodes online to make decisions
type: PveClusterTypeEnum3Indicates the type, either cluster or node. The type defines the object properties e.g. quorate available for type cluster.
version: Option<i64>[cluster] Current version of the corosync configuration file.
Implementations§
Source§impl ClusterGetStatusResponseDataInner
impl ClusterGetStatusResponseDataInner
pub fn new( id: String, name: String, type: PveClusterTypeEnum3, ) -> ClusterGetStatusResponseDataInner
Trait Implementations§
Source§impl Clone for ClusterGetStatusResponseDataInner
impl Clone for ClusterGetStatusResponseDataInner
Source§fn clone(&self) -> ClusterGetStatusResponseDataInner
fn clone(&self) -> ClusterGetStatusResponseDataInner
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 Default for ClusterGetStatusResponseDataInner
impl Default for ClusterGetStatusResponseDataInner
Source§fn default() -> ClusterGetStatusResponseDataInner
fn default() -> ClusterGetStatusResponseDataInner
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ClusterGetStatusResponseDataInner
impl<'de> Deserialize<'de> for ClusterGetStatusResponseDataInner
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 ClusterGetStatusResponseDataInner
impl PartialEq for ClusterGetStatusResponseDataInner
Source§fn eq(&self, other: &ClusterGetStatusResponseDataInner) -> bool
fn eq(&self, other: &ClusterGetStatusResponseDataInner) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ClusterGetStatusResponseDataInner
Auto Trait Implementations§
impl Freeze for ClusterGetStatusResponseDataInner
impl RefUnwindSafe for ClusterGetStatusResponseDataInner
impl Send for ClusterGetStatusResponseDataInner
impl Sync for ClusterGetStatusResponseDataInner
impl Unpin for ClusterGetStatusResponseDataInner
impl UnsafeUnpin for ClusterGetStatusResponseDataInner
impl UnwindSafe for ClusterGetStatusResponseDataInner
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