Struct aws_sdk_networkmanager::types::NetworkRoute
source · #[non_exhaustive]pub struct NetworkRoute {
pub destination_cidr_block: Option<String>,
pub destinations: Option<Vec<NetworkRouteDestination>>,
pub prefix_list_id: Option<String>,
pub state: Option<RouteState>,
pub type: Option<RouteType>,
}
Expand description
Describes a network route.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.destination_cidr_block: Option<String>
A unique identifier for the route, such as a CIDR block.
destinations: Option<Vec<NetworkRouteDestination>>
The destinations.
prefix_list_id: Option<String>
The ID of the prefix list.
state: Option<RouteState>
The route state. The possible values are active
and blackhole
.
type: Option<RouteType>
The route type. The possible values are propagated
and static
.
Implementations§
source§impl NetworkRoute
impl NetworkRoute
sourcepub fn destination_cidr_block(&self) -> Option<&str>
pub fn destination_cidr_block(&self) -> Option<&str>
A unique identifier for the route, such as a CIDR block.
sourcepub fn destinations(&self) -> &[NetworkRouteDestination]
pub fn destinations(&self) -> &[NetworkRouteDestination]
The destinations.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .destinations.is_none()
.
sourcepub fn prefix_list_id(&self) -> Option<&str>
pub fn prefix_list_id(&self) -> Option<&str>
The ID of the prefix list.
sourcepub fn state(&self) -> Option<&RouteState>
pub fn state(&self) -> Option<&RouteState>
The route state. The possible values are active
and blackhole
.
source§impl NetworkRoute
impl NetworkRoute
sourcepub fn builder() -> NetworkRouteBuilder
pub fn builder() -> NetworkRouteBuilder
Creates a new builder-style object to manufacture NetworkRoute
.
Trait Implementations§
source§impl Clone for NetworkRoute
impl Clone for NetworkRoute
source§fn clone(&self) -> NetworkRoute
fn clone(&self) -> NetworkRoute
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for NetworkRoute
impl Debug for NetworkRoute
source§impl PartialEq for NetworkRoute
impl PartialEq for NetworkRoute
source§fn eq(&self, other: &NetworkRoute) -> bool
fn eq(&self, other: &NetworkRoute) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for NetworkRoute
Auto Trait Implementations§
impl Freeze for NetworkRoute
impl RefUnwindSafe for NetworkRoute
impl Send for NetworkRoute
impl Sync for NetworkRoute
impl Unpin for NetworkRoute
impl UnwindSafe for NetworkRoute
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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.