Struct bollard::network::CreateNetworkOptions [−][src]
Network configuration used in the Create Network API
Fields
name: T
The network's name.
check_duplicate: bool
Check for networks with duplicate names. Since Network is primarily keyed based on a random ID and not on the name, and network name is strictly a user-friendly alias to the network which is uniquely identified using ID, there is no guaranteed way to check for duplicates. CheckDuplicate is there to provide a best effort checking of any networks which has the same name but it is not guaranteed to catch all name collisions.
driver: T
Name of the network driver plugin to use.
internal: bool
Restrict external access to the network.
attachable: bool
Globally scoped network is manually attachable by regular containers from workers in swarm mode.
ingress: bool
Ingress network is the network which provides the routing-mesh in swarm mode.
ipam: Ipam
Controls IP address management when creating a network.
enable_ipv6: bool
Enable IPv6 on the network.
options: HashMap<T, T>
Network specific options to be used by the drivers.
labels: HashMap<T, T>
User-defined key/value metadata.
Trait Implementations
impl<T: Clone> Clone for CreateNetworkOptions<T> where
T: Into<String> + Eq + Hash,
[src]
T: Into<String> + Eq + Hash,
fn clone(&self) -> CreateNetworkOptions<T>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T: Debug> Debug for CreateNetworkOptions<T> where
T: Into<String> + Eq + Hash,
[src]
T: Into<String> + Eq + Hash,
impl<T: Default> Default for CreateNetworkOptions<T> where
T: Into<String> + Eq + Hash,
[src]
T: Into<String> + Eq + Hash,
fn default() -> CreateNetworkOptions<T>
[src]
impl<'de, T> Deserialize<'de> for CreateNetworkOptions<T> where
T: Into<String> + Eq + Hash,
T: Deserialize<'de>,
[src]
T: Into<String> + Eq + Hash,
T: Deserialize<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl<T> Serialize for CreateNetworkOptions<T> where
T: Into<String> + Eq + Hash,
T: Serialize,
[src]
T: Into<String> + Eq + Hash,
T: Serialize,
Auto Trait Implementations
impl<T> RefUnwindSafe for CreateNetworkOptions<T> where
T: RefUnwindSafe,
[src]
T: RefUnwindSafe,
impl<T> Send for CreateNetworkOptions<T> where
T: Send,
[src]
T: Send,
impl<T> Sync for CreateNetworkOptions<T> where
T: Sync,
[src]
T: Sync,
impl<T> Unpin for CreateNetworkOptions<T> where
T: Unpin,
[src]
T: Unpin,
impl<T> UnwindSafe for CreateNetworkOptions<T> where
T: UnwindSafe,
[src]
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,