pub struct TaskSpecNetworkAttachmentSpec {
pub container_id: Option<String>,
}
Expand description
Read-only spec type for non-swarm containers attached to swarm overlay networks.
plugin
. NetworkAttachmentSpec is used when the Runtime > field is set to attachment
.
Fields§
§container_id: Option<String>
ID of the container represented by this task
Trait Implementations§
source§impl Clone for TaskSpecNetworkAttachmentSpec
impl Clone for TaskSpecNetworkAttachmentSpec
source§fn clone(&self) -> TaskSpecNetworkAttachmentSpec
fn clone(&self) -> TaskSpecNetworkAttachmentSpec
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 Default for TaskSpecNetworkAttachmentSpec
impl Default for TaskSpecNetworkAttachmentSpec
source§fn default() -> TaskSpecNetworkAttachmentSpec
fn default() -> TaskSpecNetworkAttachmentSpec
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for TaskSpecNetworkAttachmentSpec
impl<'de> Deserialize<'de> for TaskSpecNetworkAttachmentSpec
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<TaskSpecNetworkAttachmentSpec> for TaskSpecNetworkAttachmentSpec
impl PartialEq<TaskSpecNetworkAttachmentSpec> for TaskSpecNetworkAttachmentSpec
source§fn eq(&self, other: &TaskSpecNetworkAttachmentSpec) -> bool
fn eq(&self, other: &TaskSpecNetworkAttachmentSpec) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.