Struct google_api_proto::google::cloud::edgenetwork::v1::Router
source · pub struct Router {
pub name: String,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub labels: BTreeMap<String, String>,
pub description: String,
pub network: String,
pub interface: Vec<Interface>,
pub bgp_peer: Vec<BgpPeer>,
pub bgp: Option<Bgp>,
pub state: i32,
pub route_advertisements: Vec<String>,
}
Expand description
Message describing Router object
Fields§
§name: String
Required. The canonical resource name of the router.
create_time: Option<Timestamp>
Output only. The time when the router was created.
update_time: Option<Timestamp>
Output only. The time when the router was last updated.
labels: BTreeMap<String, String>
Labels associated with this resource.
description: String
Optional. A free-text description of the resource. Max length 1024 characters.
network: String
Required. The canonical name of the network to which this router belongs.
The name is in the form of
projects/{project}/locations/{location}/zones/{zone}/networks/{network}
.
interface: Vec<Interface>
Router interfaces.
bgp_peer: Vec<BgpPeer>
BGP peers.
bgp: Option<Bgp>
BGP information specific to this router.
state: i32
Output only. Current stage of the resource to the device by config push.
route_advertisements: Vec<String>
Optional. A list of CIDRs in IP/Length format to advertise northbound as static routes from this router.
Implementations§
source§impl Router
impl Router
sourcepub fn state(&self) -> ResourceState
pub fn state(&self) -> ResourceState
Returns the enum value of state
, or the default if the field is set to an invalid enum value.
sourcepub fn set_state(&mut self, value: ResourceState)
pub fn set_state(&mut self, value: ResourceState)
Sets state
to the provided enum value.
Trait Implementations§
source§impl Message for Router
impl Message for Router
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 Router
impl PartialEq for Router
impl StructuralPartialEq for Router
Auto Trait Implementations§
impl Freeze for Router
impl RefUnwindSafe for Router
impl Send for Router
impl Sync for Router
impl Unpin for Router
impl UnwindSafe for Router
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