pub struct AddPortMappingBuilder { /* private fields */ }Expand description
Builder for AddPortMapping matching parameters.
Implementations§
Source§impl AddPortMappingBuilder
impl AddPortMappingBuilder
pub fn with_external_port(self, port: u16) -> Self
pub fn with_protocol(self, protocol: Protocol) -> Self
pub fn with_internal_port(self, port: u16) -> Self
pub fn with_internal_client(self, client: IpAddr) -> Self
pub fn with_description(self, desc: impl Into<String>) -> Self
pub fn build(self) -> Action
Trait Implementations§
Source§impl Clone for AddPortMappingBuilder
impl Clone for AddPortMappingBuilder
Source§fn clone(&self) -> AddPortMappingBuilder
fn clone(&self) -> AddPortMappingBuilder
Returns a duplicate 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 AddPortMappingBuilder
impl Debug for AddPortMappingBuilder
Source§impl Default for AddPortMappingBuilder
impl Default for AddPortMappingBuilder
Source§fn default() -> AddPortMappingBuilder
fn default() -> AddPortMappingBuilder
Returns the “default value” for a type. Read more
Source§impl From<AddPortMappingBuilder> for Action
impl From<AddPortMappingBuilder> for Action
Source§fn from(builder: AddPortMappingBuilder) -> Self
fn from(builder: AddPortMappingBuilder) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AddPortMappingBuilder
impl RefUnwindSafe for AddPortMappingBuilder
impl Send for AddPortMappingBuilder
impl Sync for AddPortMappingBuilder
impl Unpin for AddPortMappingBuilder
impl UnwindSafe for AddPortMappingBuilder
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