Struct openstack_sdk::api::network::v2::router::set::RouterBuilder
source · 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(&mut self, value: bool) -> &mut Self
pub fn admin_state_up(&mut self, value: bool) -> &mut Self
The administrative state of the resource, which is up (true) or down
(false).
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<ExternalGatewayInfo<'a>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn external_gateway_info<VALUE: Into<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 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.
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§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