#[non_exhaustive]pub struct NamedPort {
pub name: Option<String>,
pub port: Option<i32>,
/* private fields */
}Available on crate features
instance-group-managers or instance-groups or region-instance-group-managers or region-instance-groups only.Expand description
The named port. For example: <“http”, 80>.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: Option<String>The name for this named port. The name must be 1-63 characters long, and comply withRFC1035.
port: Option<i32>The port number, which can be a value between 1 and 65535.
Implementations§
Trait Implementations§
impl StructuralPartialEq for NamedPort
Auto Trait Implementations§
impl Freeze for NamedPort
impl RefUnwindSafe for NamedPort
impl Send for NamedPort
impl Sync for NamedPort
impl Unpin for NamedPort
impl UnwindSafe for NamedPort
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