Struct aws_sdk_codeartifact::types::PackageDependency
source · #[non_exhaustive]pub struct PackageDependency {
pub namespace: Option<String>,
pub package: Option<String>,
pub dependency_type: Option<String>,
pub version_requirement: Option<String>,
}
Expand description
Details about a package dependency.
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.namespace: Option<String>
The namespace of the package that this package depends on. 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 package that this package depends on.
dependency_type: Option<String>
The type of a package dependency. The possible values depend on the package type.
-
npm:
regular
,dev
,peer
,optional
-
maven:
optional
,parent
,compile
,runtime
,test
,system
,provided
.Note that
parent
is not a regular Maven dependency type; instead this is extracted from the
element if one is defined in the package version's POM file. -
nuget: The
dependencyType
field is never set for NuGet packages. -
pypi:
Requires-Dist
version_requirement: Option<String>
The required version, or version range, of the package that this package depends on. The version format is specific to the package type. For example, the following are possible valid required versions: 1.2.3
, ^2.3.4
, or 4.x
.
Implementations§
source§impl PackageDependency
impl PackageDependency
sourcepub fn namespace(&self) -> Option<&str>
pub fn namespace(&self) -> Option<&str>
The namespace of the package that this package depends on. 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 dependency_type(&self) -> Option<&str>
pub fn dependency_type(&self) -> Option<&str>
The type of a package dependency. The possible values depend on the package type.
-
npm:
regular
,dev
,peer
,optional
-
maven:
optional
,parent
,compile
,runtime
,test
,system
,provided
.Note that
parent
is not a regular Maven dependency type; instead this is extracted from the
element if one is defined in the package version's POM file. -
nuget: The
dependencyType
field is never set for NuGet packages. -
pypi:
Requires-Dist
sourcepub fn version_requirement(&self) -> Option<&str>
pub fn version_requirement(&self) -> Option<&str>
The required version, or version range, of the package that this package depends on. The version format is specific to the package type. For example, the following are possible valid required versions: 1.2.3
, ^2.3.4
, or 4.x
.
source§impl PackageDependency
impl PackageDependency
sourcepub fn builder() -> PackageDependencyBuilder
pub fn builder() -> PackageDependencyBuilder
Creates a new builder-style object to manufacture PackageDependency
.
Trait Implementations§
source§impl Clone for PackageDependency
impl Clone for PackageDependency
source§fn clone(&self) -> PackageDependency
fn clone(&self) -> PackageDependency
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PackageDependency
impl Debug for PackageDependency
source§impl PartialEq for PackageDependency
impl PartialEq for PackageDependency
source§fn eq(&self, other: &PackageDependency) -> bool
fn eq(&self, other: &PackageDependency) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PackageDependency
Auto Trait Implementations§
impl Freeze for PackageDependency
impl RefUnwindSafe for PackageDependency
impl Send for PackageDependency
impl Sync for PackageDependency
impl Unpin for PackageDependency
impl UnwindSafe for PackageDependency
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