[−][src]Struct openstack::network::NewSubnet
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]
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
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,