Struct bollard::models::ClusterInfo
source · pub struct ClusterInfo {
pub id: Option<String>,
pub version: Option<ObjectVersion>,
pub created_at: Option<String>,
pub updated_at: Option<String>,
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>>,
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<String>
Date and time at which the swarm was initialised in RFC 3339 format with nano-seconds.
updated_at: Option<String>
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>>
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§
source§impl Clone for ClusterInfo
impl Clone for ClusterInfo
source§fn clone(&self) -> ClusterInfo
fn clone(&self) -> ClusterInfo
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ClusterInfo
impl Debug for ClusterInfo
source§impl Default for ClusterInfo
impl Default for ClusterInfo
source§fn default() -> ClusterInfo
fn default() -> ClusterInfo
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ClusterInfo
impl<'de> Deserialize<'de> for ClusterInfo
source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ClusterInfo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ClusterInfo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for ClusterInfo
impl PartialEq for ClusterInfo
source§impl Serialize for ClusterInfo
impl Serialize for ClusterInfo
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
impl StructuralPartialEq for ClusterInfo
Auto Trait Implementations§
impl Freeze for ClusterInfo
impl RefUnwindSafe for ClusterInfo
impl Send for ClusterInfo
impl Sync for ClusterInfo
impl Unpin for ClusterInfo
impl UnwindSafe for ClusterInfo
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)