#[non_exhaustive]pub struct PackageVersionSummaryBuilder { /* private fields */ }
Expand description
A builder for PackageVersionSummary
.
Implementations§
source§impl PackageVersionSummaryBuilder
impl PackageVersionSummaryBuilder
sourcepub fn set_version(self, input: Option<String>) -> Self
pub fn set_version(self, input: Option<String>) -> Self
Information about a package version.
sourcepub fn revision(self, input: impl Into<String>) -> Self
pub fn revision(self, input: impl Into<String>) -> Self
The revision associated with a package version.
sourcepub fn set_revision(self, input: Option<String>) -> Self
pub fn set_revision(self, input: Option<String>) -> Self
The revision associated with a package version.
sourcepub fn status(self, input: PackageVersionStatus) -> Self
pub fn status(self, input: PackageVersionStatus) -> Self
A string that contains the status of the package version. It can be one of the following:
sourcepub fn set_status(self, input: Option<PackageVersionStatus>) -> Self
pub fn set_status(self, input: Option<PackageVersionStatus>) -> Self
A string that contains the status of the package version. It can be one of the following:
sourcepub fn origin(self, input: PackageVersionOrigin) -> Self
pub fn origin(self, input: PackageVersionOrigin) -> Self
A PackageVersionOrigin object that contains information about how the package version was added to the repository.
sourcepub fn set_origin(self, input: Option<PackageVersionOrigin>) -> Self
pub fn set_origin(self, input: Option<PackageVersionOrigin>) -> Self
A PackageVersionOrigin object that contains information about how the package version was added to the repository.
sourcepub fn build(self) -> PackageVersionSummary
pub fn build(self) -> PackageVersionSummary
Consumes the builder and constructs a PackageVersionSummary
.
Trait Implementations§
source§impl Clone for PackageVersionSummaryBuilder
impl Clone for PackageVersionSummaryBuilder
source§fn clone(&self) -> PackageVersionSummaryBuilder
fn clone(&self) -> PackageVersionSummaryBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PackageVersionSummaryBuilder
impl Debug for PackageVersionSummaryBuilder
source§impl Default for PackageVersionSummaryBuilder
impl Default for PackageVersionSummaryBuilder
source§fn default() -> PackageVersionSummaryBuilder
fn default() -> PackageVersionSummaryBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq<PackageVersionSummaryBuilder> for PackageVersionSummaryBuilder
impl PartialEq<PackageVersionSummaryBuilder> for PackageVersionSummaryBuilder
source§fn eq(&self, other: &PackageVersionSummaryBuilder) -> bool
fn eq(&self, other: &PackageVersionSummaryBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PackageVersionSummaryBuilder
Auto Trait Implementations§
impl RefUnwindSafe for PackageVersionSummaryBuilder
impl Send for PackageVersionSummaryBuilder
impl Sync for PackageVersionSummaryBuilder
impl Unpin for PackageVersionSummaryBuilder
impl UnwindSafe for PackageVersionSummaryBuilder
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
Mutably borrows from an owned value. Read more