Struct docker_api::models::Swarm
source · [−]pub struct Swarm {
pub created_at: Option<DateTime<Utc>>,
pub data_path_port: Option<u32>,
pub default_addr_pool: Option<Vec<String, Global>>,
pub id: Option<String>,
pub join_tokens: Option<JoinTokens>,
pub root_rotation_in_progress: Option<bool>,
pub spec: Option<SwarmSpec>,
pub subnet_size: Option<u32>,
pub tls_info: Option<TlsInfo>,
pub updated_at: Option<DateTime<Utc>>,
pub version: Option<ObjectVersion>,
}
Expand description
ClusterInfo represents information about the swarm as is returned by the “/info” endpoint. Join-tokens are not included.
Fields
created_at: Option<DateTime<Utc>>
Date and time at which the swarm was initialised in RFC 3339 format with nano-seconds.
data_path_port: Option<u32>
DataPathPort specifies the data path port number for data traffic. Acceptable port range is 1024 to 49151. If no port is set or is set to 0, the default port (4789) is used.
default_addr_pool: Option<Vec<String, Global>>
Default Address Pool specifies default subnet pools for global scope networks.
id: Option<String>
The ID of the swarm.
join_tokens: Option<JoinTokens>
root_rotation_in_progress: Option<bool>
Whether there is currently a root CA rotation in progress for the swarm
spec: Option<SwarmSpec>
subnet_size: Option<u32>
SubnetSize specifies the subnet size of the networks created from the default subnet pool.
tls_info: Option<TlsInfo>
updated_at: Option<DateTime<Utc>>
Date and time at which the swarm was last updated in RFC 3339 format with nano-seconds.
version: Option<ObjectVersion>
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Swarm
impl<'de> Deserialize<'de> for Swarm
sourcefn deserialize<__D>(
__deserializer: __D
) -> Result<Swarm, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<Swarm, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<Swarm> for Swarm
impl PartialEq<Swarm> for Swarm
sourceimpl Serialize for Swarm
impl Serialize for Swarm
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 Swarm
Auto Trait Implementations
impl RefUnwindSafe for Swarm
impl Send for Swarm
impl Sync for Swarm
impl Unpin for Swarm
impl UnwindSafe for Swarm
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