#[non_exhaustive]pub struct RouteAsPath {
pub as_lists: Vec<u32>,
pub path_segment_type: Option<PathSegmentType>,
/* private fields */
}Available on crate features
routers or routes 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.as_lists: Vec<u32>[Output Only] The AS numbers of the AS Path.
path_segment_type: Option<PathSegmentType>[Output Only] The type of the AS Path, which can be one of the following values:
- ‘AS_SET’: unordered set of autonomous systems that the route in has traversed
- ‘AS_SEQUENCE’: ordered set of autonomous systems that the route has traversed
- ‘AS_CONFED_SEQUENCE’: ordered set of Member Autonomous Systems in the local confederation that the route has traversed
- ‘AS_CONFED_SET’: unordered set of Member Autonomous Systems in the local confederation that the route has traversed
Implementations§
Source§impl RouteAsPath
impl RouteAsPath
pub fn new() -> Self
Sourcepub fn set_as_lists<T, V>(self, v: T) -> Self
pub fn set_as_lists<T, V>(self, v: T) -> Self
Sourcepub fn set_path_segment_type<T>(self, v: T) -> Selfwhere
T: Into<PathSegmentType>,
pub fn set_path_segment_type<T>(self, v: T) -> Selfwhere
T: Into<PathSegmentType>,
Sets the value of path_segment_type.
§Example
ⓘ
use google_cloud_compute_v1::model::route_as_path::PathSegmentType;
let x0 = RouteAsPath::new().set_path_segment_type(PathSegmentType::AsConfedSet);
let x1 = RouteAsPath::new().set_path_segment_type(PathSegmentType::AsSequence);
let x2 = RouteAsPath::new().set_path_segment_type(PathSegmentType::AsSet);Sourcepub fn set_or_clear_path_segment_type<T>(self, v: Option<T>) -> Selfwhere
T: Into<PathSegmentType>,
pub fn set_or_clear_path_segment_type<T>(self, v: Option<T>) -> Selfwhere
T: Into<PathSegmentType>,
Sets or clears the value of path_segment_type.
§Example
ⓘ
use google_cloud_compute_v1::model::route_as_path::PathSegmentType;
let x0 = RouteAsPath::new().set_or_clear_path_segment_type(Some(PathSegmentType::AsConfedSet));
let x1 = RouteAsPath::new().set_or_clear_path_segment_type(Some(PathSegmentType::AsSequence));
let x2 = RouteAsPath::new().set_or_clear_path_segment_type(Some(PathSegmentType::AsSet));
let x_none = RouteAsPath::new().set_or_clear_path_segment_type(None::<PathSegmentType>);Trait Implementations§
Source§impl Clone for RouteAsPath
impl Clone for RouteAsPath
Source§fn clone(&self) -> RouteAsPath
fn clone(&self) -> RouteAsPath
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 RouteAsPath
impl Debug for RouteAsPath
Source§impl Default for RouteAsPath
impl Default for RouteAsPath
Source§fn default() -> RouteAsPath
fn default() -> RouteAsPath
Returns the “default value” for a type. Read more
Source§impl Message for RouteAsPath
impl Message for RouteAsPath
Source§impl PartialEq for RouteAsPath
impl PartialEq for RouteAsPath
impl StructuralPartialEq for RouteAsPath
Auto Trait Implementations§
impl Freeze for RouteAsPath
impl RefUnwindSafe for RouteAsPath
impl Send for RouteAsPath
impl Sync for RouteAsPath
impl Unpin for RouteAsPath
impl UnwindSafe for RouteAsPath
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