pub struct SubnetBuilder<'a> { /* private fields */ }Expand description
Builder for Subnet.
Implementations§
Source§impl<'a> SubnetBuilder<'a>
impl<'a> SubnetBuilder<'a>
Sourcepub fn allocation_pools<VALUE: Into<Vec<AllocationPools<'a>>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn allocation_pools<VALUE: Into<Vec<AllocationPools<'a>>>>( &mut self, value: VALUE, ) -> &mut Self
Allocation pools with start and end IP addresses for this subnet.
If allocation_pools are not specified, OpenStack Networking
automatically allocates pools for covering all IP addresses in the
CIDR, excluding the address reserved for the subnet gateway by default.
Sourcepub fn description<VALUE: Into<Cow<'a, str>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn description<VALUE: Into<Cow<'a, str>>>( &mut self, value: VALUE, ) -> &mut Self
A human-readable description for the resource. Default is an empty string.
Sourcepub fn dns_nameservers<VALUE: Into<Vec<Cow<'a, str>>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn dns_nameservers<VALUE: Into<Vec<Cow<'a, str>>>>( &mut self, value: VALUE, ) -> &mut Self
List of dns name servers associated with the subnet. Default is an empty list.
Sourcepub fn dns_publish_fixed_ip<VALUE: Into<bool>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn dns_publish_fixed_ip<VALUE: Into<bool>>( &mut self, value: VALUE, ) -> &mut Self
Whether to publish DNS records for IPs from this subnet. Default is
false.
Sourcepub fn enable_dhcp<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn enable_dhcp<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
Indicates whether dhcp is enabled or disabled for the subnet. Default
is true.
Sourcepub fn gateway_ip<VALUE: Into<Cow<'a, str>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn gateway_ip<VALUE: Into<Cow<'a, str>>>( &mut self, value: VALUE, ) -> &mut Self
Gateway IP of this subnet. If the value is null that implies no
gateway is associated with the subnet. If the gateway_ip is not
specified, OpenStack Networking allocates an address from the CIDR for
the gateway for the subnet by default.
Sourcepub fn host_routes<VALUE: Into<Vec<HostRoutes<'a>>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn host_routes<VALUE: Into<Vec<HostRoutes<'a>>>>( &mut self, value: VALUE, ) -> &mut Self
Additional routes for the subnet. A list of dictionaries with
destination and nexthop parameters. Default value is an empty list.
Sourcepub fn name<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
pub fn name<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
Human-readable name of the resource.
Sourcepub fn segment_id<VALUE: Into<Option<Cow<'a, str>>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn segment_id<VALUE: Into<Option<Cow<'a, str>>>>( &mut self, value: VALUE, ) -> &mut Self
The ID of a network segment the subnet is associated with. It is
available when segment extension is enabled.
Trait Implementations§
Source§impl<'a> Clone for SubnetBuilder<'a>
impl<'a> Clone for SubnetBuilder<'a>
Source§fn clone(&self) -> SubnetBuilder<'a>
fn clone(&self) -> SubnetBuilder<'a>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl<'a> Freeze for SubnetBuilder<'a>
impl<'a> RefUnwindSafe for SubnetBuilder<'a>
impl<'a> Send for SubnetBuilder<'a>
impl<'a> Sync for SubnetBuilder<'a>
impl<'a> Unpin for SubnetBuilder<'a>
impl<'a> UnwindSafe for SubnetBuilder<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more