pub struct VirtualGatewayPortMapping {
pub port: i64,
pub protocol: String,
}
Expand description
An object that represents a port mapping.
Fields§
§port: i64
The port used for the port mapping. Specify one protocol.
protocol: String
The protocol used for the port mapping.
Trait Implementations§
Source§impl Clone for VirtualGatewayPortMapping
impl Clone for VirtualGatewayPortMapping
Source§fn clone(&self) -> VirtualGatewayPortMapping
fn clone(&self) -> VirtualGatewayPortMapping
Returns a copy 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 VirtualGatewayPortMapping
impl Debug for VirtualGatewayPortMapping
Source§impl Default for VirtualGatewayPortMapping
impl Default for VirtualGatewayPortMapping
Source§fn default() -> VirtualGatewayPortMapping
fn default() -> VirtualGatewayPortMapping
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for VirtualGatewayPortMapping
impl<'de> Deserialize<'de> for VirtualGatewayPortMapping
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
impl StructuralPartialEq for VirtualGatewayPortMapping
Auto Trait Implementations§
impl Freeze for VirtualGatewayPortMapping
impl RefUnwindSafe for VirtualGatewayPortMapping
impl Send for VirtualGatewayPortMapping
impl Sync for VirtualGatewayPortMapping
impl Unpin for VirtualGatewayPortMapping
impl UnwindSafe for VirtualGatewayPortMapping
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