pub struct NetworkAttachmentInfo {
pub network: String,
pub aliases: Vec<String>,
pub ipv4: Option<String>,
}Expand description
Per-network attachment entry on ContainerInfo::networks.
Populated from the runtime’s inspect response — mirrors the subset of
bollard’s EndpointSettings that API clients need to correlate a container
with its container_networks entries.
Fields§
§network: StringNetwork name as reported by the runtime. Matches the name field on
entries returned by GET /api/v1/container-networks.
aliases: Vec<String>DNS aliases the container answers to on this network.
ipv4: Option<String>Assigned IPv4 on this network, if any.
Trait Implementations§
Source§impl Clone for NetworkAttachmentInfo
impl Clone for NetworkAttachmentInfo
Source§fn clone(&self) -> NetworkAttachmentInfo
fn clone(&self) -> NetworkAttachmentInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl ComposeSchema for NetworkAttachmentInfo
impl ComposeSchema for NetworkAttachmentInfo
Source§impl Debug for NetworkAttachmentInfo
impl Debug for NetworkAttachmentInfo
Source§impl<'de> Deserialize<'de> for NetworkAttachmentInfo
impl<'de> Deserialize<'de> for NetworkAttachmentInfo
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 Serialize for NetworkAttachmentInfo
impl Serialize for NetworkAttachmentInfo
Auto Trait Implementations§
impl Freeze for NetworkAttachmentInfo
impl RefUnwindSafe for NetworkAttachmentInfo
impl Send for NetworkAttachmentInfo
impl Sync for NetworkAttachmentInfo
impl Unpin for NetworkAttachmentInfo
impl UnsafeUnpin for NetworkAttachmentInfo
impl UnwindSafe for NetworkAttachmentInfo
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