#[non_exhaustive]pub struct Builder { /* private fields */ }Expand description
A builder for ListPackageVersionsOutput
Implementations
sourceimpl Builder
 
impl Builder
sourcepub fn default_display_version(self, input: impl Into<String>) -> Self
 
pub fn default_display_version(self, input: impl Into<String>) -> Self
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 set_default_display_version(self, input: Option<String>) -> Self
 
pub fn set_default_display_version(self, input: Option<String>) -> Self
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, input: PackageFormat) -> Self
 
pub fn format(self, input: PackageFormat) -> Self
A format of the package. Valid package format values are:
-  npm
-  pypi
-  maven
sourcepub fn set_format(self, input: Option<PackageFormat>) -> Self
 
pub fn set_format(self, input: Option<PackageFormat>) -> Self
A format of the package. Valid package format values are:
-  npm
-  pypi
-  maven
sourcepub fn namespace(self, input: impl Into<String>) -> Self
 
pub fn namespace(self, input: impl Into<String>) -> Self
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.
-  A Python package does not contain a corresponding component, so Python packages do not have a namespace. 
sourcepub fn set_namespace(self, input: Option<String>) -> Self
 
pub fn set_namespace(self, input: Option<String>) -> Self
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.
-  A Python package does not contain a corresponding component, so Python packages do not have a namespace. 
sourcepub fn set_package(self, input: Option<String>) -> Self
 
pub fn set_package(self, input: Option<String>) -> Self
The name of the package.
sourcepub fn versions(self, input: PackageVersionSummary) -> Self
 
pub fn versions(self, input: PackageVersionSummary) -> Self
Appends an item to versions.
To override the contents of this collection use set_versions.
The returned list of PackageVersionSummary objects.
sourcepub fn set_versions(self, input: Option<Vec<PackageVersionSummary>>) -> Self
 
pub fn set_versions(self, input: Option<Vec<PackageVersionSummary>>) -> Self
The returned list of PackageVersionSummary objects.
sourcepub fn next_token(self, input: impl Into<String>) -> Self
 
pub fn next_token(self, input: impl Into<String>) -> Self
If there are additional results, this is the token for the next set of results.
sourcepub fn set_next_token(self, input: Option<String>) -> Self
 
pub fn set_next_token(self, input: Option<String>) -> Self
If there are additional results, this is the token for the next set of results.
sourcepub fn build(self) -> ListPackageVersionsOutput
 
pub fn build(self) -> ListPackageVersionsOutput
Consumes the builder and constructs a ListPackageVersionsOutput
Trait Implementations
impl StructuralPartialEq for Builder
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
    T: ?Sized, 
 
impl<T> BorrowMut<T> for T where
    T: ?Sized, 
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
 
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
 
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
 
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
 
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
    S: Into<Dispatch>, 
 
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
    S: Into<Dispatch>, 
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
 
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more