Struct google_api_proto::google::cloud::vmwareengine::v1::PeeringRoute
source · pub struct PeeringRoute {
pub dest_range: String,
pub type: i32,
pub next_hop_region: String,
pub priority: i64,
pub imported: bool,
pub direction: i32,
}Expand description
Exchanged network peering route.
Fields§
§dest_range: StringOutput only. Destination range of the peering route in CIDR notation.
type: i32Output 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: i32Output 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 type(&self) -> Type
pub fn type(&self) -> Type
Returns the enum value of type, or the default if the field is set to an invalid enum value.
sourcepub fn direction(&self) -> Direction
pub fn direction(&self) -> Direction
Returns the enum value of direction, or the default if the field is set to an invalid enum value.
sourcepub fn set_direction(&mut self, value: Direction)
pub fn set_direction(&mut self, value: Direction)
Sets direction to the provided enum value.
Trait Implementations§
source§impl Clone for PeeringRoute
impl Clone for PeeringRoute
source§fn clone(&self) -> PeeringRoute
fn clone(&self) -> PeeringRoute
1.0.0 · 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§impl Message for PeeringRoute
impl Message for PeeringRoute
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.source§impl PartialEq for PeeringRoute
impl PartialEq for PeeringRoute
source§fn eq(&self, other: &PeeringRoute) -> bool
fn eq(&self, other: &PeeringRoute) -> bool
self and other values to be equal, and is used
by ==.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 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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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