#[non_exhaustive]pub struct ListPackageVersionsOutput {
    pub default_display_version: Option<String>,
    pub format: Option<PackageFormat>,
    pub namespace: Option<String>,
    pub package: Option<String>,
    pub versions: Option<Vec<PackageVersionSummary>>,
    pub next_token: Option<String>,
    /* private fields */
}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.default_display_version: Option<String>The default package version to display. This depends on the package format:
- 
For Maven and PyPI packages, it's the most recently published package version. 
- 
For npm packages, it's the version referenced by the latesttag. If thelatesttag is not set, it's the most recently published package version.
format: Option<PackageFormat>A format of the package.
namespace: Option<String>The namespace of the package that contains the requested package versions. 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.
versions: Option<Vec<PackageVersionSummary>>The returned list of PackageVersionSummary objects.
next_token: Option<String>If there are additional results, this is the token for the next set of results.
Implementations§
source§impl ListPackageVersionsOutput
 
impl ListPackageVersionsOutput
sourcepub fn default_display_version(&self) -> Option<&str>
 
pub fn default_display_version(&self) -> Option<&str>
The default package version to display. This depends on the package format:
- 
For Maven and PyPI packages, it's the most recently published package version. 
- 
For npm packages, it's the version referenced by the latesttag. If thelatesttag is not set, it's the most recently published package version.
sourcepub fn format(&self) -> Option<&PackageFormat>
 
pub fn format(&self) -> Option<&PackageFormat>
A format of the package.
sourcepub fn namespace(&self) -> Option<&str>
 
pub fn namespace(&self) -> Option<&str>
The namespace of the package that contains the requested package versions. 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 versions(&self) -> &[PackageVersionSummary]
 
pub fn versions(&self) -> &[PackageVersionSummary]
The returned list of PackageVersionSummary objects.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .versions.is_none().
sourcepub fn next_token(&self) -> Option<&str>
 
pub fn next_token(&self) -> Option<&str>
If there are additional results, this is the token for the next set of results.
source§impl ListPackageVersionsOutput
 
impl ListPackageVersionsOutput
sourcepub fn builder() -> ListPackageVersionsOutputBuilder
 
pub fn builder() -> ListPackageVersionsOutputBuilder
Creates a new builder-style object to manufacture ListPackageVersionsOutput.
Trait Implementations§
source§impl Clone for ListPackageVersionsOutput
 
impl Clone for ListPackageVersionsOutput
source§fn clone(&self) -> ListPackageVersionsOutput
 
fn clone(&self) -> ListPackageVersionsOutput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ListPackageVersionsOutput
 
impl Debug for ListPackageVersionsOutput
source§impl PartialEq for ListPackageVersionsOutput
 
impl PartialEq for ListPackageVersionsOutput
source§fn eq(&self, other: &ListPackageVersionsOutput) -> bool
 
fn eq(&self, other: &ListPackageVersionsOutput) -> bool
self and other values to be equal, and is used
by ==.source§impl RequestId for ListPackageVersionsOutput
 
impl RequestId for ListPackageVersionsOutput
source§fn request_id(&self) -> Option<&str>
 
fn request_id(&self) -> Option<&str>
None if the service could not be reached.impl StructuralPartialEq for ListPackageVersionsOutput
Auto Trait Implementations§
impl Freeze for ListPackageVersionsOutput
impl RefUnwindSafe for ListPackageVersionsOutput
impl Send for ListPackageVersionsOutput
impl Sync for ListPackageVersionsOutput
impl Unpin for ListPackageVersionsOutput
impl UnwindSafe for ListPackageVersionsOutput
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