#[non_exhaustive]pub struct PeeringRoute {
pub dest_range: String,
pub type: Type,
pub next_hop_region: String,
pub priority: i64,
pub imported: bool,
pub direction: Direction,
/* private fields */
}Expand description
Exchanged network peering route.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.dest_range: StringOutput only. Destination range of the peering route in CIDR notation.
type: TypeOutput only. Type of the route in the peer VPC network.
next_hop_region: StringOutput only. Region containing the next hop of the peering route. This field only applies to dynamic routes in the peer VPC network.
priority: i64Output only. The priority of the peering route.
imported: boolOutput only. True if the peering route has been imported from a peered
VPC network; false otherwise. The import happens if the field
NetworkPeering.importCustomRoutes is true for this network,
NetworkPeering.exportCustomRoutes is true for the peer VPC network, and
the import does not result in a route conflict.
direction: DirectionOutput only. Direction of the routes exchanged with the peer network, from the VMware Engine network perspective:
- Routes of direction
INCOMINGare imported from the peer network. - Routes of direction
OUTGOINGare exported from the intranet VPC network of the VMware Engine network.
Implementations§
Source§impl PeeringRoute
impl PeeringRoute
Sourcepub fn set_dest_range<T: Into<String>>(self, v: T) -> Self
pub fn set_dest_range<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_next_hop_region<T: Into<String>>(self, v: T) -> Self
pub fn set_next_hop_region<T: Into<String>>(self, v: T) -> Self
Sets the value of next_hop_region.
§Example
let x = PeeringRoute::new().set_next_hop_region("example");Sourcepub fn set_priority<T: Into<i64>>(self, v: T) -> Self
pub fn set_priority<T: Into<i64>>(self, v: T) -> Self
Sourcepub fn set_imported<T: Into<bool>>(self, v: T) -> Self
pub fn set_imported<T: Into<bool>>(self, v: T) -> Self
Sourcepub fn set_direction<T: Into<Direction>>(self, v: T) -> Self
pub fn set_direction<T: Into<Direction>>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for PeeringRoute
impl Clone for PeeringRoute
Source§fn clone(&self) -> PeeringRoute
fn clone(&self) -> PeeringRoute
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PeeringRoute
impl Debug for PeeringRoute
Source§impl Default for PeeringRoute
impl Default for PeeringRoute
Source§fn default() -> PeeringRoute
fn default() -> PeeringRoute
Source§impl Message for PeeringRoute
impl Message for PeeringRoute
Source§impl PartialEq for PeeringRoute
impl PartialEq for PeeringRoute
impl StructuralPartialEq for PeeringRoute
Auto Trait Implementations§
impl Freeze for PeeringRoute
impl RefUnwindSafe for PeeringRoute
impl Send for PeeringRoute
impl Sync for PeeringRoute
impl Unpin for PeeringRoute
impl UnsafeUnpin for PeeringRoute
impl UnwindSafe for PeeringRoute
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request