pub struct NatGateway {
pub name: String,
pub urn: String,
pub subnet: String,
pub floating_ip: String,
pub vpc: String,
pub create_time: Option<Timestamp>,
pub creator: String,
pub tags: BTreeMap<String, String>,
}Expand description
Shared IPv4 egress through one floating IP.
Fields§
§name: StringThe gateway’s resource name.
urn: StringThe gateway’s URN, the identifier access policies and the audit log use.
subnet: StringThe public subnet the gateway lives in, in the same project and zone.
floating_ip: StringThe floating IP instances behind the gateway appear as, in the same project and zone. It stays allocated when the gateway is deleted.
vpc: StringThe subnet’s VPC.
create_time: Option<Timestamp>When the NAT gateway was created.
creator: StringThe principal that created the NAT gateway, such as user:<id> or
service_account:<id>; empty for one the platform created.
Labels of your own, at most 50. The origin:name tag is the name the
console shows.
Trait Implementations§
Source§impl Clone for NatGateway
impl Clone for NatGateway
Source§impl Debug for NatGateway
impl Debug for NatGateway
Source§impl Default for NatGateway
impl Default for NatGateway
Source§impl<'de> Deserialize<'de> for NatGateway
impl<'de> Deserialize<'de> for NatGateway
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Message for NatGateway
impl Message for NatGateway
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
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,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
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,
Encodes the message with a length-delimiter to a buffer. Read more
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,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
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,
Decodes a length-delimited instance of the message from the buffer.
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,
Decodes an instance of the message from a buffer, and merges it into
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,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for NatGateway
impl PartialEq for NatGateway
Source§impl Serialize for NatGateway
impl Serialize for NatGateway
impl StructuralPartialEq for NatGateway
Auto Trait Implementations§
impl Forget for NatGateway
impl Freeze for NatGateway
impl RefUnwindSafe for NatGateway
impl Send for NatGateway
impl Sync for NatGateway
impl Unpin for NatGateway
impl UnsafeUnpin for NatGateway
impl UnwindSafe for NatGateway
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