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