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.