pub struct TaskSpecNetworkAttachmentSpecInlineItem {
pub container_id: Option<String>,
}
Expand description
Read-only spec type for non-swarm containers attached to swarm overlay networks.
Note: ContainerSpec, NetworkAttachmentSpec, and PluginSpec are mutually exclusive. PluginSpec is only used when the Runtime field is set to
plugin
. NetworkAttachmentSpec is used when the Runtime field is set toattachment
.
Fields§
§container_id: Option<String>
ID of the container represented by this task
Trait Implementations§
Source§impl Clone for TaskSpecNetworkAttachmentSpecInlineItem
impl Clone for TaskSpecNetworkAttachmentSpecInlineItem
Source§fn clone(&self) -> TaskSpecNetworkAttachmentSpecInlineItem
fn clone(&self) -> TaskSpecNetworkAttachmentSpecInlineItem
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<'de> Deserialize<'de> for TaskSpecNetworkAttachmentSpecInlineItem
impl<'de> Deserialize<'de> for TaskSpecNetworkAttachmentSpecInlineItem
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<TaskSpecNetworkAttachmentSpecInlineItem, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TaskSpecNetworkAttachmentSpecInlineItem, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for TaskSpecNetworkAttachmentSpecInlineItem
impl PartialEq for TaskSpecNetworkAttachmentSpecInlineItem
Source§fn eq(&self, other: &TaskSpecNetworkAttachmentSpecInlineItem) -> bool
fn eq(&self, other: &TaskSpecNetworkAttachmentSpecInlineItem) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.Source§impl Serialize for TaskSpecNetworkAttachmentSpecInlineItem
impl Serialize for TaskSpecNetworkAttachmentSpecInlineItem
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 TaskSpecNetworkAttachmentSpecInlineItem
Auto Trait Implementations§
impl Freeze for TaskSpecNetworkAttachmentSpecInlineItem
impl RefUnwindSafe for TaskSpecNetworkAttachmentSpecInlineItem
impl Send for TaskSpecNetworkAttachmentSpecInlineItem
impl Sync for TaskSpecNetworkAttachmentSpecInlineItem
impl Unpin for TaskSpecNetworkAttachmentSpecInlineItem
impl UnwindSafe for TaskSpecNetworkAttachmentSpecInlineItem
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