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 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.
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 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 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 ==
.impl StructuralPartialEq for PackageSummary
Auto Trait Implementations§
impl Freeze for PackageSummary
impl RefUnwindSafe for PackageSummary
impl Send for PackageSummary
impl Sync for PackageSummary
impl Unpin for PackageSummary
impl UnwindSafe for PackageSummary
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