#[non_exhaustive]pub struct RouterStatus {
pub network: String,
pub bgp_peer_status: Vec<BgpPeerStatus>,
/* private fields */
}Expand description
Describing the current status of a router.
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.network: StringThe canonical name of the network to which this router belongs.
bgp_peer_status: Vec<BgpPeerStatus>A list of BgpPeerStatus objects, describing all BGP peers related to this router.
Implementations§
Source§impl RouterStatus
impl RouterStatus
pub fn new() -> Self
Sourcepub fn set_network<T: Into<String>>(self, v: T) -> Self
pub fn set_network<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_bgp_peer_status<T, V>(self, v: T) -> Self
pub fn set_bgp_peer_status<T, V>(self, v: T) -> Self
Sets the value of bgp_peer_status.
§Example
ⓘ
use google_cloud_edgenetwork_v1::model::router_status::BgpPeerStatus;
let x = RouterStatus::new()
.set_bgp_peer_status([
BgpPeerStatus::default()/* use setters */,
BgpPeerStatus::default()/* use (different) setters */,
]);Trait Implementations§
Source§impl Clone for RouterStatus
impl Clone for RouterStatus
Source§fn clone(&self) -> RouterStatus
fn clone(&self) -> RouterStatus
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 RouterStatus
impl Debug for RouterStatus
Source§impl Default for RouterStatus
impl Default for RouterStatus
Source§fn default() -> RouterStatus
fn default() -> RouterStatus
Returns the “default value” for a type. Read more
Source§impl Message for RouterStatus
impl Message for RouterStatus
Source§impl PartialEq for RouterStatus
impl PartialEq for RouterStatus
impl StructuralPartialEq for RouterStatus
Auto Trait Implementations§
impl Freeze for RouterStatus
impl RefUnwindSafe for RouterStatus
impl Send for RouterStatus
impl Sync for RouterStatus
impl Unpin for RouterStatus
impl UnsafeUnpin for RouterStatus
impl UnwindSafe for RouterStatus
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