Skip to main content

RouteInfo

Struct RouteInfo 

Source
pub struct RouteInfo {
Show 24 fields pub advertised_route_next_hop_uri: Option<String>, pub advertised_route_source_router_uri: Option<String>, pub dest_ip_range: Option<String>, pub dest_port_ranges: Option<Vec<String>>, pub display_name: Option<String>, pub instance_tags: Option<Vec<String>>, pub ncc_hub_route_uri: Option<String>, pub ncc_hub_uri: Option<String>, pub ncc_spoke_uri: Option<String>, pub network_uri: Option<String>, pub next_hop: Option<String>, pub next_hop_network_uri: Option<String>, pub next_hop_type: Option<String>, pub next_hop_uri: Option<String>, pub originating_route_display_name: Option<String>, pub originating_route_uri: Option<String>, pub priority: Option<i32>, pub protocols: Option<Vec<String>>, pub region: Option<String>, pub route_scope: Option<String>, pub route_type: Option<String>, pub src_ip_range: Option<String>, pub src_port_ranges: Option<Vec<String>>, pub uri: Option<String>,
}
Expand description

For display only. Metadata associated with a Compute Engine route.

This type is not used in any activity, and only used as part of another schema.

Fields§

§advertised_route_next_hop_uri: Option<String>

For ADVERTISED routes, the URI of their next hop, i.e. the URI of the hybrid endpoint (VPN tunnel, Interconnect attachment, NCC router appliance) the advertised prefix is advertised through, or URI of the source peered network. Deprecated in favor of the next_hop_uri field, not used in new tests.

§advertised_route_source_router_uri: Option<String>

For ADVERTISED dynamic routes, the URI of the Cloud Router that advertised the corresponding IP prefix.

§dest_ip_range: Option<String>

Destination IP range of the route.

§dest_port_ranges: Option<Vec<String>>

Destination port ranges of the route. POLICY_BASED routes only.

§display_name: Option<String>

Name of a route.

§instance_tags: Option<Vec<String>>

Instance tags of the route.

§ncc_hub_route_uri: Option<String>

For PEERING_SUBNET and PEERING_DYNAMIC routes that are advertised by NCC Hub, the URI of the corresponding route in NCC Hub’s routing table.

§ncc_hub_uri: Option<String>

URI of the NCC Hub the route is advertised by. PEERING_SUBNET and PEERING_DYNAMIC routes that are advertised by NCC Hub only.

§ncc_spoke_uri: Option<String>

URI of the destination NCC Spoke. PEERING_SUBNET and PEERING_DYNAMIC routes that are advertised by NCC Hub only.

§network_uri: Option<String>

URI of a VPC network where route is located.

§next_hop: Option<String>

String type of the next hop of the route (for example, “VPN tunnel”). Deprecated in favor of the next_hop_type and next_hop_uri fields, not used in new tests.

§next_hop_network_uri: Option<String>

URI of a VPC network where the next hop resource is located.

§next_hop_type: Option<String>

Type of next hop.

§next_hop_uri: Option<String>

URI of the next hop resource.

§originating_route_display_name: Option<String>

For PEERING_SUBNET, PEERING_STATIC and PEERING_DYNAMIC routes, the name of the originating SUBNET/STATIC/DYNAMIC route.

§originating_route_uri: Option<String>

For PEERING_SUBNET and PEERING_STATIC routes, the URI of the originating SUBNET/STATIC route.

§priority: Option<i32>

Priority of the route.

§protocols: Option<Vec<String>>

Protocols of the route. POLICY_BASED routes only.

§region: Option<String>

Region of the route. DYNAMIC, PEERING_DYNAMIC, POLICY_BASED and ADVERTISED routes only. If set for POLICY_BASED route, this is a region of VLAN attachments for Cloud Interconnect the route applies to.

§route_scope: Option<String>

Indicates where route is applicable. Deprecated, routes with NCC_HUB scope are not included in the trace in new tests.

§route_type: Option<String>

Type of route.

§src_ip_range: Option<String>

Source IP address range of the route. POLICY_BASED routes only.

§src_port_ranges: Option<Vec<String>>

Source port ranges of the route. POLICY_BASED routes only.

§uri: Option<String>

URI of a route. SUBNET, STATIC, PEERING_SUBNET (only for peering network) and POLICY_BASED routes only.

Trait Implementations§

Source§

impl Clone for RouteInfo

Source§

fn clone(&self) -> RouteInfo

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for RouteInfo

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for RouteInfo

Source§

fn default() -> RouteInfo

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for RouteInfo

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Part for RouteInfo

Source§

impl Serialize for RouteInfo

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more