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<usize>,
pub node_addr: Option<String>,
pub node_id: Option<String>,
pub nodes: Option<usize>,
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<usize>
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<usize>
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
sourceimpl<'de> Deserialize<'de> for SwarmInfo
impl<'de> Deserialize<'de> for SwarmInfo
sourcefn 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
sourceimpl PartialEq<SwarmInfo> for SwarmInfo
impl PartialEq<SwarmInfo> for SwarmInfo
sourceimpl Serialize for SwarmInfo
impl Serialize for SwarmInfo
sourcefn 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
impl StructuralPartialEq for SwarmInfo
Auto Trait Implementations
impl RefUnwindSafe for SwarmInfo
impl Send for SwarmInfo
impl Sync for SwarmInfo
impl Unpin for SwarmInfo
impl UnwindSafe for SwarmInfo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more