pub struct RouterBuilder<'a> { /* private fields */ }Expand description
Builder for Router.
Implementations§
Source§impl<'a> RouterBuilder<'a>
impl<'a> RouterBuilder<'a>
Sourcepub fn admin_state_up<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn admin_state_up<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
The administrative state of the resource, which is up (true) or down
(false). Default is true.
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 candidates for the router. It is available when
router_availability_zone extension is enabled.
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 distributed<VALUE: Into<Option<bool>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn distributed<VALUE: Into<Option<bool>>>( &mut self, value: VALUE, ) -> &mut Self
true indicates a distributed router. It is available when dvr
extension is enabled.
Sourcepub fn enable_ndp_proxy<VALUE: Into<Option<bool>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn enable_ndp_proxy<VALUE: Into<Option<bool>>>( &mut self, value: VALUE, ) -> &mut Self
Enable NDP proxy attribute. Default is false, To persist this
attribute value, set the enable_ndp_proxy_by_default option in the
neutron.conf file. It is available when router-extend-ndp-proxy
extension is enabled.
Sourcepub fn external_gateway_info<VALUE: Into<Option<ExternalGatewayInfo<'a>>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn external_gateway_info<VALUE: Into<Option<ExternalGatewayInfo<'a>>>>( &mut self, value: VALUE, ) -> &mut Self
The external gateway information of the router. If the router has an
external gateway, this would be a dict with network_id,
enable_snat, external_fixed_ips and qos_policy_id. Otherwise,
this would be null.
Sourcepub fn flavor_id<VALUE: Into<Cow<'a, str>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn flavor_id<VALUE: Into<Cow<'a, str>>>( &mut self, value: VALUE, ) -> &mut Self
The ID of the flavor associated with the router.
Sourcepub fn ha<VALUE: Into<Option<bool>>>(&mut self, value: VALUE) -> &mut Self
pub fn ha<VALUE: Into<Option<bool>>>(&mut self, value: VALUE) -> &mut Self
true indicates a highly-available router. It is available when
l3-ha extension is enabled.
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. Default is an empty string.
Trait Implementations§
Source§impl<'a> Clone for RouterBuilder<'a>
impl<'a> Clone for RouterBuilder<'a>
Source§fn clone(&self) -> RouterBuilder<'a>
fn clone(&self) -> RouterBuilder<'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 RouterBuilder<'a>
impl<'a> RefUnwindSafe for RouterBuilder<'a>
impl<'a> Send for RouterBuilder<'a>
impl<'a> Sync for RouterBuilder<'a>
impl<'a> Unpin for RouterBuilder<'a>
impl<'a> UnwindSafe for RouterBuilder<'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