pub struct NetworkConfig {Show 16 fields
pub capabilities: Option<Vec<HashMap<String, Value>>>,
pub creation_time: Option<i64>,
pub dns: Option<Dns>,
pub enable_broadcast: Option<bool>,
pub id: Option<String>,
pub ip_assignment_pools: Option<Vec<IpRange>>,
pub last_modified: Option<i64>,
pub mtu: Option<i64>,
pub multicast_limit: Option<i64>,
pub name: Option<String>,
pub private: Option<bool>,
pub routes: Option<Vec<Route>>,
pub rules: Option<Vec<HashMap<String, Value>>>,
pub tags: Option<Vec<HashMap<String, Value>>>,
pub v4_assign_mode: Option<Ipv4AssignMode>,
pub v6_assign_mode: Option<Ipv6AssignMode>,
}Fields§
§capabilities: Option<Vec<HashMap<String, Value>>>Array of network capabilities
creation_time: Option<i64>Time the network was created
dns: Option<Dns>§enable_broadcast: Option<bool>Enable broadcast packets on the network
id: Option<String>Network ID
ip_assignment_pools: Option<Vec<IpRange>>Range of IP addresses for the auto assign pool
last_modified: Option<i64>Time the network was last modified
mtu: Option<i64>MTU to set on the client virtual network adapter
multicast_limit: Option<i64>Maximum number of recipients per multicast or broadcast. Warning - Setting this to 0 will disable IPv4 communication on your network!
name: Option<String>§private: Option<bool>Whether or not the network is private. If false, members will NOT need to be authorized to join.
routes: Option<Vec<Route>>§rules: Option<Vec<HashMap<String, Value>>>§v4_assign_mode: Option<Ipv4AssignMode>§v6_assign_mode: Option<Ipv6AssignMode>Trait Implementations§
Source§impl Clone for NetworkConfig
impl Clone for NetworkConfig
Source§fn clone(&self) -> NetworkConfig
fn clone(&self) -> NetworkConfig
Returns a duplicate 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 Debug for NetworkConfig
impl Debug for NetworkConfig
Source§impl<'de> Deserialize<'de> for NetworkConfig
impl<'de> Deserialize<'de> for NetworkConfig
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
Auto Trait Implementations§
impl Freeze for NetworkConfig
impl RefUnwindSafe for NetworkConfig
impl Send for NetworkConfig
impl Sync for NetworkConfig
impl Unpin for NetworkConfig
impl UnwindSafe for NetworkConfig
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