pub struct NetworkAttachmentRequest {
pub network: String,
pub aliases: Vec<String>,
pub ipv4_address: Option<String>,
}Expand description
A request to attach a freshly-created container to a user-defined bridge
or overlay network, mirroring the wire-shape used by POST /api/v1/container-networks/{id_or_name}/connect.
Included on CreateContainerRequest::networks so callers can wire up
every attachment in a single call instead of issuing a separate connect
request per network after container create.
Fields§
§network: StringBridge-network id or name to attach to.
aliases: Vec<String>Optional DNS aliases for this container on the network.
ipv4_address: Option<String>Optional static IPv4 to pin this container to. Validated as
std::net::Ipv4Addr before the runtime is called.
Trait Implementations§
Source§impl Clone for NetworkAttachmentRequest
impl Clone for NetworkAttachmentRequest
Source§fn clone(&self) -> NetworkAttachmentRequest
fn clone(&self) -> NetworkAttachmentRequest
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 NetworkAttachmentRequest
impl ComposeSchema for NetworkAttachmentRequest
Source§impl Debug for NetworkAttachmentRequest
impl Debug for NetworkAttachmentRequest
Source§impl<'de> Deserialize<'de> for NetworkAttachmentRequest
impl<'de> Deserialize<'de> for NetworkAttachmentRequest
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 NetworkAttachmentRequest
impl Serialize for NetworkAttachmentRequest
Auto Trait Implementations§
impl Freeze for NetworkAttachmentRequest
impl RefUnwindSafe for NetworkAttachmentRequest
impl Send for NetworkAttachmentRequest
impl Sync for NetworkAttachmentRequest
impl Unpin for NetworkAttachmentRequest
impl UnsafeUnpin for NetworkAttachmentRequest
impl UnwindSafe for NetworkAttachmentRequest
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