Struct aws_sdk_networkmanager::types::VpcAttachment
source · #[non_exhaustive]pub struct VpcAttachment {
pub attachment: Option<Attachment>,
pub subnet_arns: Option<Vec<String>>,
pub options: Option<VpcOptions>,
}
Expand description
Describes a VPC attachment.
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.attachment: Option<Attachment>
Provides details about the VPC attachment.
subnet_arns: Option<Vec<String>>
The subnet ARNs.
options: Option<VpcOptions>
Provides details about the VPC attachment.
Implementations§
source§impl VpcAttachment
impl VpcAttachment
sourcepub fn attachment(&self) -> Option<&Attachment>
pub fn attachment(&self) -> Option<&Attachment>
Provides details about the VPC attachment.
sourcepub fn subnet_arns(&self) -> &[String]
pub fn subnet_arns(&self) -> &[String]
The subnet ARNs.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .subnet_arns.is_none()
.
sourcepub fn options(&self) -> Option<&VpcOptions>
pub fn options(&self) -> Option<&VpcOptions>
Provides details about the VPC attachment.
source§impl VpcAttachment
impl VpcAttachment
sourcepub fn builder() -> VpcAttachmentBuilder
pub fn builder() -> VpcAttachmentBuilder
Creates a new builder-style object to manufacture VpcAttachment
.
Trait Implementations§
source§impl Clone for VpcAttachment
impl Clone for VpcAttachment
source§fn clone(&self) -> VpcAttachment
fn clone(&self) -> VpcAttachment
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 VpcAttachment
impl Debug for VpcAttachment
source§impl PartialEq for VpcAttachment
impl PartialEq for VpcAttachment
source§fn eq(&self, other: &VpcAttachment) -> bool
fn eq(&self, other: &VpcAttachment) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for VpcAttachment
Auto Trait Implementations§
impl Freeze for VpcAttachment
impl RefUnwindSafe for VpcAttachment
impl Send for VpcAttachment
impl Sync for VpcAttachment
impl Unpin for VpcAttachment
impl UnwindSafe for VpcAttachment
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
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>
Creates a shared type from an unshared type.