Struct google_api_proto::google::cloud::networkmanagement::v1::NatInfo
source · pub struct NatInfo {Show 13 fields
pub type: i32,
pub protocol: String,
pub network_uri: String,
pub old_source_ip: String,
pub new_source_ip: String,
pub old_destination_ip: String,
pub new_destination_ip: String,
pub old_source_port: i32,
pub new_source_port: i32,
pub old_destination_port: i32,
pub new_destination_port: i32,
pub router_uri: String,
pub nat_gateway_name: String,
}Expand description
For display only. Metadata associated with NAT.
Fields§
§type: i32Type of NAT.
protocol: StringIP protocol in string format, for example: “TCP”, “UDP”, “ICMP”.
network_uri: StringURI of the network where NAT translation takes place.
old_source_ip: StringSource IP address before NAT translation.
new_source_ip: StringSource IP address after NAT translation.
old_destination_ip: StringDestination IP address before NAT translation.
new_destination_ip: StringDestination IP address after NAT translation.
old_source_port: i32Source port before NAT translation. Only valid when protocol is TCP or UDP.
new_source_port: i32Source port after NAT translation. Only valid when protocol is TCP or UDP.
old_destination_port: i32Destination port before NAT translation. Only valid when protocol is TCP or UDP.
new_destination_port: i32Destination port after NAT translation. Only valid when protocol is TCP or UDP.
router_uri: StringUri of the Cloud Router. Only valid when type is CLOUD_NAT.
nat_gateway_name: StringThe name of Cloud NAT Gateway. Only valid when type is CLOUD_NAT.
Implementations§
Trait Implementations§
source§impl Message for NatInfo
impl Message for NatInfo
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 NatInfo
impl PartialEq for NatInfo
impl StructuralPartialEq for NatInfo
Auto Trait Implementations§
impl Freeze for NatInfo
impl RefUnwindSafe for NatInfo
impl Send for NatInfo
impl Sync for NatInfo
impl Unpin for NatInfo
impl UnwindSafe for NatInfo
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