Struct bollard::models::ClusterInfo[][src]

pub struct ClusterInfo {
    pub id: Option<String>,
    pub version: Option<ObjectVersion>,
    pub created_at: Option<DateTime<Utc>>,
    pub updated_at: Option<DateTime<Utc>>,
    pub spec: Option<SwarmSpec>,
    pub tls_info: Option<TlsInfo>,
    pub root_rotation_in_progress: Option<bool>,
    pub data_path_port: Option<u32>,
    pub default_addr_pool: Option<Vec<String, Global>>,
    pub subnet_size: Option<u32>,
}
Expand description

ClusterInfo represents information about the swarm as is returned by the "/info" endpoint. Join-tokens are not included.

Fields

id: Option<String>

The ID of the swarm.

version: Option<ObjectVersion>created_at: Option<DateTime<Utc>>

Date and time at which the swarm was initialised in RFC 3339 format with nano-seconds.

updated_at: Option<DateTime<Utc>>

Date and time at which the swarm was last updated in RFC 3339 format with nano-seconds.

spec: Option<SwarmSpec>tls_info: Option<TlsInfo>root_rotation_in_progress: Option<bool>

Whether there is currently a root CA rotation in progress for the swarm

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.

subnet_size: Option<u32>

SubnetSize specifies the subnet size of the networks created from the default subnet pool.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more