Struct aws_sdk_codeartifact::types::PackageDescription
source · #[non_exhaustive]pub struct PackageDescription {
pub format: Option<PackageFormat>,
pub namespace: Option<String>,
pub name: Option<String>,
pub origin_configuration: Option<PackageOriginConfiguration>,
}
Expand description
Details about a package.
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 package.
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
. -
Python and NuGet packages do not contain a corresponding component, packages of those formats do not have a namespace.
-
The namespace of a generic package is its
namespace
.
name: Option<String>
The name of the package.
origin_configuration: Option<PackageOriginConfiguration>
The package origin configuration for the package.
Implementations§
source§impl PackageDescription
impl PackageDescription
sourcepub fn format(&self) -> Option<&PackageFormat>
pub fn format(&self) -> Option<&PackageFormat>
A format that specifies the type of the package.
sourcepub fn namespace(&self) -> Option<&str>
pub fn namespace(&self) -> Option<&str>
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
. -
Python and NuGet packages do not contain a corresponding component, packages of those formats do not have a namespace.
-
The namespace of a generic package is its
namespace
.
sourcepub fn origin_configuration(&self) -> Option<&PackageOriginConfiguration>
pub fn origin_configuration(&self) -> Option<&PackageOriginConfiguration>
The package origin configuration for the package.
source§impl PackageDescription
impl PackageDescription
sourcepub fn builder() -> PackageDescriptionBuilder
pub fn builder() -> PackageDescriptionBuilder
Creates a new builder-style object to manufacture PackageDescription
.
Trait Implementations§
source§impl Clone for PackageDescription
impl Clone for PackageDescription
source§fn clone(&self) -> PackageDescription
fn clone(&self) -> PackageDescription
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PackageDescription
impl Debug for PackageDescription
source§impl PartialEq for PackageDescription
impl PartialEq for PackageDescription
source§fn eq(&self, other: &PackageDescription) -> bool
fn eq(&self, other: &PackageDescription) -> bool
self
and other
values to be equal, and is used
by ==
.