#[non_exhaustive]pub struct ExchangedPeeringRoute {
pub dest_range: Option<String>,
pub imported: Option<bool>,
pub next_hop_region: Option<String>,
pub priority: Option<u32>,
pub type: Option<Type>,
/* private fields */
}Available on crate feature
networks only.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.dest_range: Option<String>The destination range of the route.
imported: Option<bool>True if the peering route has been imported from a peer. The actual import happens if the field networkPeering.importCustomRoutes is true for this network, and networkPeering.exportCustomRoutes is true for the peer network, and the import does not result in a route conflict.
next_hop_region: Option<String>The region of peering route next hop, only applies to dynamic routes.
priority: Option<u32>The priority of the peering route.
type: Option<Type>The type of the peering route.
Implementations§
Source§impl ExchangedPeeringRoute
impl ExchangedPeeringRoute
pub fn new() -> Self
Sourcepub fn set_dest_range<T>(self, v: T) -> Self
pub fn set_dest_range<T>(self, v: T) -> Self
Sets the value of dest_range.
§Example
ⓘ
let x = ExchangedPeeringRoute::new().set_dest_range("example");Sourcepub fn set_or_clear_dest_range<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_dest_range<T>(self, v: Option<T>) -> Self
Sets or clears the value of dest_range.
§Example
ⓘ
let x = ExchangedPeeringRoute::new().set_or_clear_dest_range(Some("example"));
let x = ExchangedPeeringRoute::new().set_or_clear_dest_range(None::<String>);Sourcepub fn set_imported<T>(self, v: T) -> Self
pub fn set_imported<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_imported<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_imported<T>(self, v: Option<T>) -> Self
Sourcepub fn set_next_hop_region<T>(self, v: T) -> Self
pub fn set_next_hop_region<T>(self, v: T) -> Self
Sets the value of next_hop_region.
§Example
ⓘ
let x = ExchangedPeeringRoute::new().set_next_hop_region("example");Sourcepub fn set_or_clear_next_hop_region<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_next_hop_region<T>(self, v: Option<T>) -> Self
Sets or clears the value of next_hop_region.
§Example
ⓘ
let x = ExchangedPeeringRoute::new().set_or_clear_next_hop_region(Some("example"));
let x = ExchangedPeeringRoute::new().set_or_clear_next_hop_region(None::<String>);Sourcepub fn set_priority<T>(self, v: T) -> Self
pub fn set_priority<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_priority<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_priority<T>(self, v: Option<T>) -> Self
Sourcepub fn set_or_clear_type<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_type<T>(self, v: Option<T>) -> Self
Sets or clears the value of r#type.
§Example
ⓘ
use google_cloud_compute_v1::model::exchanged_peering_route::Type;
let x0 = ExchangedPeeringRoute::new().set_or_clear_type(Some(Type::StaticPeeringRoute));
let x1 = ExchangedPeeringRoute::new().set_or_clear_type(Some(Type::SubnetPeeringRoute));
let x_none = ExchangedPeeringRoute::new().set_or_clear_type(None::<Type>);Trait Implementations§
Source§impl Clone for ExchangedPeeringRoute
impl Clone for ExchangedPeeringRoute
Source§fn clone(&self) -> ExchangedPeeringRoute
fn clone(&self) -> ExchangedPeeringRoute
Returns a duplicate 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 ExchangedPeeringRoute
impl Debug for ExchangedPeeringRoute
Source§impl Default for ExchangedPeeringRoute
impl Default for ExchangedPeeringRoute
Source§fn default() -> ExchangedPeeringRoute
fn default() -> ExchangedPeeringRoute
Returns the “default value” for a type. Read more
Source§impl Message for ExchangedPeeringRoute
impl Message for ExchangedPeeringRoute
Source§impl PartialEq for ExchangedPeeringRoute
impl PartialEq for ExchangedPeeringRoute
impl StructuralPartialEq for ExchangedPeeringRoute
Auto Trait Implementations§
impl Freeze for ExchangedPeeringRoute
impl RefUnwindSafe for ExchangedPeeringRoute
impl Send for ExchangedPeeringRoute
impl Sync for ExchangedPeeringRoute
impl Unpin for ExchangedPeeringRoute
impl UnwindSafe for ExchangedPeeringRoute
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