Struct openstack_sdk::api::network::v2::network::create::NetworkBuilder
source · pub struct NetworkBuilder<'a> { /* private fields */ }Expand description
Builder for Network.
Implementations§
source§impl<'a> NetworkBuilder<'a>
impl<'a> NetworkBuilder<'a>
sourcepub fn admin_state_up(&mut self, value: bool) -> &mut Self
pub fn admin_state_up(&mut self, value: bool) -> &mut Self
The administrative state of the network, which is up (true) or down
(false).
sourcepub fn availability_zone_hints<VALUE: Into<Vec<Cow<'a, str>>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn availability_zone_hints<VALUE: Into<Vec<Cow<'a, str>>>>( &mut self, value: VALUE, ) -> &mut Self
The availability zone candidate for the network.
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_domain<VALUE: Into<Cow<'a, str>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn dns_domain<VALUE: Into<Cow<'a, str>>>( &mut self, value: VALUE, ) -> &mut Self
A valid DNS domain.
pub fn ha(&mut self, value: bool) -> &mut Self
sourcepub fn is_default(&mut self, value: bool) -> &mut Self
pub fn is_default(&mut self, value: bool) -> &mut Self
The network is default or not.
sourcepub fn mtu(&mut self, value: i32) -> &mut Self
pub fn mtu(&mut self, value: i32) -> &mut Self
The maximum transmission unit (MTU) value to address fragmentation. Minimum value is 68 for IPv4, and 1280 for IPv6.
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 network.
sourcepub fn port_security_enabled(&mut self, value: bool) -> &mut Self
pub fn port_security_enabled(&mut self, value: bool) -> &mut Self
The port security status of the network. Valid values are enabled
(true) and disabled (false). This value is used as the default
value of port_security_enabled field of a newly created port.
pub fn provider_network_type<VALUE: Into<Cow<'a, str>>>( &mut self, value: VALUE, ) -> &mut Self
pub fn provider_physical_network<VALUE: Into<Cow<'a, str>>>( &mut self, value: VALUE, ) -> &mut Self
pub fn provider_segmentation_id<VALUE: Into<Cow<'a, str>>>( &mut self, value: VALUE, ) -> &mut Self
sourcepub fn qos_policy_id<VALUE: Into<Option<Cow<'a, str>>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn qos_policy_id<VALUE: Into<Option<Cow<'a, str>>>>( &mut self, value: VALUE, ) -> &mut Self
The ID of the QoS policy associated with the network.
sourcepub fn router_external(&mut self, value: bool) -> &mut Self
pub fn router_external(&mut self, value: bool) -> &mut Self
Indicates whether the network has an external routing facility that’s not managed by the networking service.
sourcepub fn segments<VALUE: Into<Vec<Segments<'a>>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn segments<VALUE: Into<Vec<Segments<'a>>>>( &mut self, value: VALUE, ) -> &mut Self
A list of provider segment objects.
Indicates whether this resource is shared across all projects. By default, only administrative users can change this value.
Trait Implementations§
source§impl<'a> Clone for NetworkBuilder<'a>
impl<'a> Clone for NetworkBuilder<'a>
source§fn clone(&self) -> NetworkBuilder<'a>
fn clone(&self) -> NetworkBuilder<'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 NetworkBuilder<'a>
impl<'a> RefUnwindSafe for NetworkBuilder<'a>
impl<'a> Send for NetworkBuilder<'a>
impl<'a> Sync for NetworkBuilder<'a>
impl<'a> Unpin for NetworkBuilder<'a>
impl<'a> UnwindSafe for NetworkBuilder<'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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)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