Struct docker_api::models::SwarmInfo
source · pub struct SwarmInfo {
pub cluster: Option<ClusterInfo>,
pub control_available: Option<bool>,
pub error: Option<String>,
pub local_node_state: Option<String>,
pub managers: Option<isize>,
pub node_addr: Option<String>,
pub node_id: Option<String>,
pub nodes: Option<isize>,
pub remote_managers: Option<Vec<PeerNode, Global>>,
}
Expand description
Represents generic information about swarm.
Fields§
§cluster: Option<ClusterInfo>
§control_available: Option<bool>
§error: Option<String>
§local_node_state: Option<String>
§managers: Option<isize>
Total number of managers in the swarm.
node_addr: Option<String>
IP address at which this node can be reached by other nodes in the swarm.
node_id: Option<String>
Unique identifier of for this node in the swarm.
nodes: Option<isize>
Total number of nodes in the swarm.
remote_managers: Option<Vec<PeerNode, Global>>
List of ID’s and addresses of other managers in the swarm.
Trait Implementations§
source§impl<'de> Deserialize<'de> for SwarmInfo
impl<'de> Deserialize<'de> for SwarmInfo
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<SwarmInfo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<SwarmInfo, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<SwarmInfo> for SwarmInfo
impl PartialEq<SwarmInfo> for SwarmInfo
source§impl Serialize for SwarmInfo
impl Serialize for SwarmInfo
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more