Struct aws_sdk_codeartifact::types::AssociatedPackage
source · #[non_exhaustive]pub struct AssociatedPackage {
pub format: Option<PackageFormat>,
pub namespace: Option<String>,
pub package: Option<String>,
pub association_type: Option<PackageGroupAssociationType>,
}
Expand description
A package associated with a package group.
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.format: Option<PackageFormat>
A format that specifies the type of the associated package.
namespace: Option<String>
The namespace of the associated package. The package component that specifies its namespace depends on its type. For example:
-
The namespace of a Maven package version is its
groupId
. -
The namespace of an npm or Swift package version is its
scope
. -
The namespace of a generic package is its
namespace
. -
Python, NuGet, and Ruby package versions do not contain a corresponding component, package versions of those formats do not have a namespace.
package: Option<String>
The name of the associated package.
association_type: Option<PackageGroupAssociationType>
Describes the strength of the association between the package and package group. A strong match can be thought of as an exact match, and a weak match can be thought of as a variation match, for example, the package name matches a variation of the package group pattern. For more information about package group pattern matching, including strong and weak matches, see Package group definition syntax and matching behavior in the CodeArtifact User Guide.
Implementations§
source§impl AssociatedPackage
impl AssociatedPackage
sourcepub fn format(&self) -> Option<&PackageFormat>
pub fn format(&self) -> Option<&PackageFormat>
A format that specifies the type of the associated package.
sourcepub fn namespace(&self) -> Option<&str>
pub fn namespace(&self) -> Option<&str>
The namespace of the associated package. The package component that specifies its namespace depends on its type. For example:
-
The namespace of a Maven package version is its
groupId
. -
The namespace of an npm or Swift package version is its
scope
. -
The namespace of a generic package is its
namespace
. -
Python, NuGet, and Ruby package versions do not contain a corresponding component, package versions of those formats do not have a namespace.
sourcepub fn association_type(&self) -> Option<&PackageGroupAssociationType>
pub fn association_type(&self) -> Option<&PackageGroupAssociationType>
Describes the strength of the association between the package and package group. A strong match can be thought of as an exact match, and a weak match can be thought of as a variation match, for example, the package name matches a variation of the package group pattern. For more information about package group pattern matching, including strong and weak matches, see Package group definition syntax and matching behavior in the CodeArtifact User Guide.
source§impl AssociatedPackage
impl AssociatedPackage
sourcepub fn builder() -> AssociatedPackageBuilder
pub fn builder() -> AssociatedPackageBuilder
Creates a new builder-style object to manufacture AssociatedPackage
.
Trait Implementations§
source§impl Clone for AssociatedPackage
impl Clone for AssociatedPackage
source§fn clone(&self) -> AssociatedPackage
fn clone(&self) -> AssociatedPackage
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AssociatedPackage
impl Debug for AssociatedPackage
source§impl PartialEq for AssociatedPackage
impl PartialEq for AssociatedPackage
source§fn eq(&self, other: &AssociatedPackage) -> bool
fn eq(&self, other: &AssociatedPackage) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AssociatedPackage
Auto Trait Implementations§
impl Freeze for AssociatedPackage
impl RefUnwindSafe for AssociatedPackage
impl Send for AssociatedPackage
impl Sync for AssociatedPackage
impl Unpin for AssociatedPackage
impl UnwindSafe for AssociatedPackage
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