Struct aws_sdk_codeartifact::types::PackageSummary
source · #[non_exhaustive]pub struct PackageSummary {
pub format: Option<PackageFormat>,
pub namespace: Option<String>,
pub package: Option<String>,
pub origin_configuration: Option<PackageOriginConfiguration>,
}Expand description
Details about a package, including its format, namespace, and name.
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>The format 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.
package: Option<String>The name of the package.
origin_configuration: Option<PackageOriginConfiguration>A PackageOriginConfiguration object that contains a PackageOriginRestrictions object that contains information about the upstream and publish package origin restrictions.
Implementations§
source§impl PackageSummary
impl PackageSummary
sourcepub fn format(&self) -> Option<&PackageFormat>
pub fn format(&self) -> Option<&PackageFormat>
The format 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>
A PackageOriginConfiguration object that contains a PackageOriginRestrictions object that contains information about the upstream and publish package origin restrictions.
source§impl PackageSummary
impl PackageSummary
sourcepub fn builder() -> PackageSummaryBuilder
pub fn builder() -> PackageSummaryBuilder
Creates a new builder-style object to manufacture PackageSummary.
Trait Implementations§
source§impl Clone for PackageSummary
impl Clone for PackageSummary
source§fn clone(&self) -> PackageSummary
fn clone(&self) -> PackageSummary
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for PackageSummary
impl Debug for PackageSummary
source§impl PartialEq for PackageSummary
impl PartialEq for PackageSummary
source§fn eq(&self, other: &PackageSummary) -> bool
fn eq(&self, other: &PackageSummary) -> bool
self and other values to be equal, and is used
by ==.