[−][src]Struct openstack::network::NewSubnet
A request to create a subnet.
Methods
impl NewSubnet[src]
pub fn create(self) -> Result<Subnet>[src]
Request creation of the subnet.
pub fn add_allocation_pool(&mut self, value: AllocationPool)[src]
Allocation pool(s) for the subnet (the default is the whole CIDR).
pub fn allocation_pools(&mut self) -> &mut Vec<AllocationPool>[src]
Allocation pool(s) for the subnet (the default is the whole CIDR).
pub fn with_allocation_pool(self, value: AllocationPool) -> Self[src]
Allocation pool(s) for the subnet (the default is the whole CIDR).
pub fn set_cidr(&mut self, value: IpNet)[src]
Set CIDR of the subnet.
pub fn with_cidr(self, value: IpNet) -> Self[src]
Set CIDR of the subnet.
pub fn set_description<S: Into<String>>(&mut self, value: S)[src]
Set description of the subnet.
pub fn with_description<S: Into<String>>(self, value: S) -> Self[src]
Set description of the subnet.
pub fn set_dhcp_enabled(&mut self, value: bool)[src]
Configure whether DHCP is enabled (true by default).
pub fn with_dhcp_enabled(self, value: bool) -> Self[src]
Configure whether DHCP is enabled (true by default).
pub fn add_dns_nameserver<S: Into<String>>(&mut self, value: S)[src]
DNS nameserver(s) for the subnet.
pub fn dns_nameservers(&mut self) -> &mut Vec<String>[src]
DNS nameserver(s) for the subnet.
pub fn with_dns_nameserver<S: Into<String>>(self, value: S) -> Self[src]
DNS nameserver(s) for the subnet.
pub fn add_host_route(&mut self, value: HostRoute)[src]
Host route(s) for the subnet.
pub fn host_routes(&mut self) -> &mut Vec<HostRoute>[src]
Host route(s) for the subnet.
pub fn with_host_route(self, value: HostRoute) -> Self[src]
Host route(s) for the subnet.
pub fn set_ipv6_address_mode(&mut self, value: Ipv6Mode)[src]
Set IPv6 address assignment mode.
pub fn with_ipv6_address_mode(self, value: Ipv6Mode) -> Self[src]
Set IPv6 address assignment mode.
pub fn set_ipv6_router_advertisement_mode(&mut self, value: Ipv6Mode)[src]
Set IPv6 router advertisement mode.
pub fn with_ipv6_router_advertisement_mode(self, value: Ipv6Mode) -> Self[src]
Set IPv6 router advertisement mode.
pub fn set_name<S: Into<String>>(&mut self, value: S)[src]
Set a name for the subnet.
pub fn with_name<S: Into<String>>(self, value: S) -> Self[src]
Set a name for the subnet.
pub fn set_network<N>(&mut self, value: N) where
N: Into<NetworkRef>, [src]
N: Into<NetworkRef>,
Set the network of the subnet.
pub fn with_network<N>(self, value: N) -> Self where
N: Into<NetworkRef>, [src]
N: Into<NetworkRef>,
Set the network of the subnet.
Trait Implementations
impl Clone for NewSubnet[src]
fn clone(&self) -> NewSubnet[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Debug for NewSubnet[src]
Auto Trait Implementations
Blanket Implementations
impl<T> From for T[src]
impl<T, U> Into for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
impl<T, U> TryFrom for T where
U: Into<T>, [src]
U: Into<T>,
type Error = !
try_from)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T> Borrow for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from)The type returned in the event of a conversion error.