pub struct NewSubnet { /* private fields */ }Expand description
A request to create a subnet.
Implementations§
Source§impl NewSubnet
impl NewSubnet
Sourcepub fn add_allocation_pool(&mut self, value: AllocationPool)
pub fn add_allocation_pool(&mut self, value: AllocationPool)
Allocation pool(s) for the subnet (the default is the whole CIDR).
Sourcepub fn allocation_pools(&mut self) -> &mut Vec<AllocationPool>
pub fn allocation_pools(&mut self) -> &mut Vec<AllocationPool>
Allocation pool(s) for the subnet (the default is the whole CIDR).
Sourcepub fn with_allocation_pool(self, value: AllocationPool) -> Self
pub fn with_allocation_pool(self, value: AllocationPool) -> Self
Allocation pool(s) for the subnet (the default is the whole CIDR).
Sourcepub fn set_description<S: Into<String>>(&mut self, value: S)
pub fn set_description<S: Into<String>>(&mut self, value: S)
Set description of the subnet.
Sourcepub fn with_description<S: Into<String>>(self, value: S) -> Self
pub fn with_description<S: Into<String>>(self, value: S) -> Self
Set description of the subnet.
Sourcepub fn set_dhcp_enabled(&mut self, value: bool)
pub fn set_dhcp_enabled(&mut self, value: bool)
Configure whether DHCP is enabled (true by default).
Sourcepub fn with_dhcp_enabled(self, value: bool) -> Self
pub fn with_dhcp_enabled(self, value: bool) -> Self
Configure whether DHCP is enabled (true by default).
Sourcepub fn add_dns_nameserver<S: Into<String>>(&mut self, value: S)
pub fn add_dns_nameserver<S: Into<String>>(&mut self, value: S)
DNS nameserver(s) for the subnet.
Sourcepub fn dns_nameservers(&mut self) -> &mut Vec<String>
pub fn dns_nameservers(&mut self) -> &mut Vec<String>
DNS nameserver(s) for the subnet.
Sourcepub fn with_dns_nameserver<S: Into<String>>(self, value: S) -> Self
pub fn with_dns_nameserver<S: Into<String>>(self, value: S) -> Self
DNS nameserver(s) for the subnet.
Sourcepub fn add_host_route(&mut self, value: HostRoute)
pub fn add_host_route(&mut self, value: HostRoute)
Host route(s) for the subnet.
Sourcepub fn host_routes(&mut self) -> &mut Vec<HostRoute>
pub fn host_routes(&mut self) -> &mut Vec<HostRoute>
Host route(s) for the subnet.
Sourcepub fn with_host_route(self, value: HostRoute) -> Self
pub fn with_host_route(self, value: HostRoute) -> Self
Host route(s) for the subnet.
Sourcepub fn set_ipv6_address_mode(&mut self, value: Ipv6Mode)
pub fn set_ipv6_address_mode(&mut self, value: Ipv6Mode)
Set IPv6 address assignment mode.
Sourcepub fn with_ipv6_address_mode(self, value: Ipv6Mode) -> Self
pub fn with_ipv6_address_mode(self, value: Ipv6Mode) -> Self
Set IPv6 address assignment mode.
Sourcepub fn set_ipv6_router_advertisement_mode(&mut self, value: Ipv6Mode)
pub fn set_ipv6_router_advertisement_mode(&mut self, value: Ipv6Mode)
Set IPv6 router advertisement mode.
Sourcepub fn with_ipv6_router_advertisement_mode(self, value: Ipv6Mode) -> Self
pub fn with_ipv6_router_advertisement_mode(self, value: Ipv6Mode) -> Self
Set IPv6 router advertisement mode.
Sourcepub fn set_network<N>(&mut self, value: N)where
N: Into<NetworkRef>,
pub fn set_network<N>(&mut self, value: N)where
N: Into<NetworkRef>,
Set the network of the subnet.
Sourcepub fn with_network<N>(self, value: N) -> Selfwhere
N: Into<NetworkRef>,
pub fn with_network<N>(self, value: N) -> Selfwhere
N: Into<NetworkRef>,
Set the network of the subnet.