Struct aws_sdk_ec2::operation::describe_network_interface_attribute::DescribeNetworkInterfaceAttributeOutput
source · #[non_exhaustive]pub struct DescribeNetworkInterfaceAttributeOutput {
pub attachment: Option<NetworkInterfaceAttachment>,
pub description: Option<AttributeValue>,
pub groups: Option<Vec<GroupIdentifier>>,
pub network_interface_id: Option<String>,
pub source_dest_check: Option<AttributeBooleanValue>,
pub associate_public_ip_address: Option<bool>,
/* private fields */
}
Expand description
Contains the output of DescribeNetworkInterfaceAttribute.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.attachment: Option<NetworkInterfaceAttachment>
The attachment (if any) of the network interface.
description: Option<AttributeValue>
The description of the network interface.
groups: Option<Vec<GroupIdentifier>>
The security groups associated with the network interface.
network_interface_id: Option<String>
The ID of the network interface.
source_dest_check: Option<AttributeBooleanValue>
Indicates whether source/destination checking is enabled.
associate_public_ip_address: Option<bool>
Indicates whether to assign a public IPv4 address to a network interface. This option can be enabled for any network interface but will only apply to the primary network interface (eth0).
Implementations§
source§impl DescribeNetworkInterfaceAttributeOutput
impl DescribeNetworkInterfaceAttributeOutput
sourcepub fn attachment(&self) -> Option<&NetworkInterfaceAttachment>
pub fn attachment(&self) -> Option<&NetworkInterfaceAttachment>
The attachment (if any) of the network interface.
sourcepub fn description(&self) -> Option<&AttributeValue>
pub fn description(&self) -> Option<&AttributeValue>
The description of the network interface.
sourcepub fn groups(&self) -> &[GroupIdentifier]
pub fn groups(&self) -> &[GroupIdentifier]
The security groups associated with the network interface.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .groups.is_none()
.
sourcepub fn network_interface_id(&self) -> Option<&str>
pub fn network_interface_id(&self) -> Option<&str>
The ID of the network interface.
sourcepub fn source_dest_check(&self) -> Option<&AttributeBooleanValue>
pub fn source_dest_check(&self) -> Option<&AttributeBooleanValue>
Indicates whether source/destination checking is enabled.
sourcepub fn associate_public_ip_address(&self) -> Option<bool>
pub fn associate_public_ip_address(&self) -> Option<bool>
Indicates whether to assign a public IPv4 address to a network interface. This option can be enabled for any network interface but will only apply to the primary network interface (eth0).
source§impl DescribeNetworkInterfaceAttributeOutput
impl DescribeNetworkInterfaceAttributeOutput
sourcepub fn builder() -> DescribeNetworkInterfaceAttributeOutputBuilder
pub fn builder() -> DescribeNetworkInterfaceAttributeOutputBuilder
Creates a new builder-style object to manufacture DescribeNetworkInterfaceAttributeOutput
.
Trait Implementations§
source§impl Clone for DescribeNetworkInterfaceAttributeOutput
impl Clone for DescribeNetworkInterfaceAttributeOutput
source§fn clone(&self) -> DescribeNetworkInterfaceAttributeOutput
fn clone(&self) -> DescribeNetworkInterfaceAttributeOutput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq for DescribeNetworkInterfaceAttributeOutput
impl PartialEq for DescribeNetworkInterfaceAttributeOutput
source§fn eq(&self, other: &DescribeNetworkInterfaceAttributeOutput) -> bool
fn eq(&self, other: &DescribeNetworkInterfaceAttributeOutput) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl RequestId for DescribeNetworkInterfaceAttributeOutput
impl RequestId for DescribeNetworkInterfaceAttributeOutput
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.impl StructuralPartialEq for DescribeNetworkInterfaceAttributeOutput
Auto Trait Implementations§
impl Freeze for DescribeNetworkInterfaceAttributeOutput
impl RefUnwindSafe for DescribeNetworkInterfaceAttributeOutput
impl Send for DescribeNetworkInterfaceAttributeOutput
impl Sync for DescribeNetworkInterfaceAttributeOutput
impl Unpin for DescribeNetworkInterfaceAttributeOutput
impl UnwindSafe for DescribeNetworkInterfaceAttributeOutput
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more