Struct aws_sdk_codeartifact::model::PackageDependency [−][src]
#[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. The package component that specifies its namespace depends on its type. For example:
-
The namespace of a Maven package is its
groupId
. -
The namespace of an npm package is its
scope
. -
A Python package does not contain a corresponding component, so Python packages 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.
Example types are compile
, runtime
, and test
for Maven
packages, and dev
, prod
, and optional
for npm packages.
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
The namespace of the package. The package component that specifies its namespace depends on its type. For example:
-
The namespace of a Maven package is its
groupId
. -
The namespace of an npm package is its
scope
. -
A Python package does not contain a corresponding component, so Python packages do not have a namespace.
The type of a package dependency. The possible values depend on the package type.
Example types are compile
, runtime
, and test
for Maven
packages, and dev
, prod
, and optional
for npm packages.
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
.
Creates a new builder-style object to manufacture PackageDependency
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for PackageDependency
impl Send for PackageDependency
impl Sync for PackageDependency
impl Unpin for PackageDependency
impl UnwindSafe for PackageDependency
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more