pub struct PortMapping {
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.
protocol: String
The protocol used for the port mapping. Specify one protocol.
Trait Implementations§
Source§impl Clone for PortMapping
impl Clone for PortMapping
Source§fn clone(&self) -> PortMapping
fn clone(&self) -> PortMapping
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 PortMapping
impl Debug for PortMapping
Source§impl Default for PortMapping
impl Default for PortMapping
Source§fn default() -> PortMapping
fn default() -> PortMapping
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PortMapping
impl<'de> Deserialize<'de> for PortMapping
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 PartialEq for PortMapping
impl PartialEq for PortMapping
Source§impl Serialize for PortMapping
impl Serialize for PortMapping
impl StructuralPartialEq for PortMapping
Auto Trait Implementations§
impl Freeze for PortMapping
impl RefUnwindSafe for PortMapping
impl Send for PortMapping
impl Sync for PortMapping
impl Unpin for PortMapping
impl UnwindSafe for PortMapping
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