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 is its groupId.
-  The namespace of an npm package is its scope.
-  Python and NuGet packages do not contain a corresponding component, packages 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 parentis not a regular Maven dependency type; instead this is extracted from the-  nuget: The dependencyTypefield 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 is its groupId.
-  The namespace of an npm package is its scope.
-  Python and NuGet packages do not contain a corresponding component, packages 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 parentis not a regular Maven dependency type; instead this is extracted from the-  nuget: The dependencyTypefield 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<PackageDependency> for PackageDependency
 
impl PartialEq<PackageDependency> 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 ==.