[][src]Struct openstack::network::NewSubnet

pub struct NewSubnet { /* fields omitted */ }

A request to create a subnet.

Implementations

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]

Set the network of the subnet.

pub fn with_network<N>(self, value: N) -> Self where
    N: Into<NetworkRef>, 
[src]

Set the network of the subnet.

Trait Implementations

impl Clone for NewSubnet[src]

impl Debug for NewSubnet[src]

Auto Trait Implementations

impl !RefUnwindSafe for NewSubnet

impl !Send for NewSubnet

impl !Sync for NewSubnet

impl Unpin for NewSubnet

impl !UnwindSafe for NewSubnet

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.