pub enum Target {
InternetGateway(String),
NatGateway(String),
}Expand description
Where the traffic leaves: exactly one of these. None, or more than one,
is refused with INVALID_ARGUMENT.
Variants§
InternetGateway(String)
The full name of the internet gateway of the table’s VPC to send the traffic to.
NatGateway(String)
The full name of the NAT gateway in the table’s VPC to send the
traffic to, for the IPv4 default route only: a NAT gateway
translates IPv4 only. Named in the gateway’s own zone; a name with
another zone is refused with INVALID_ARGUMENT.
Implementations§
Source§impl Target
impl Target
Sourcepub fn merge(
field: &mut Option<Target>,
tag: u32,
wire_type: WireType,
buf: &mut impl Buf,
ctx: DecodeContext,
) -> Result<(), DecodeError>
pub fn merge( field: &mut Option<Target>, tag: u32, wire_type: WireType, buf: &mut impl Buf, ctx: DecodeContext, ) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into self.
Sourcepub fn encoded_len(&self) -> usize
pub fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Trait Implementations§
impl Eq for Target
impl StructuralPartialEq for Target
Auto Trait Implementations§
impl Forget for Target
impl Freeze for Target
impl Move for Target
impl RefUnwindSafe for Target
impl Send for Targetwhere
RawVecInner: Send,
impl Sync for Targetwhere
RawVecInner: Sync,
impl Unpin for Target
impl UnsafeUnpin for Target
impl UnwindSafe for Targetwhere
RawVecInner: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.