#[non_exhaustive]pub struct PackageVersionSummaryBuilder { /* private fields */ }
Expand description
A builder for PackageVersionSummary
.
Implementations§
source§impl PackageVersionSummaryBuilder
impl PackageVersionSummaryBuilder
sourcepub fn version(self, input: impl Into<String>) -> Self
pub fn version(self, input: impl Into<String>) -> Self
Information about a package version.
This field is required.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 get_version(&self) -> &Option<String>
pub fn get_version(&self) -> &Option<String>
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 get_revision(&self) -> &Option<String>
pub fn get_revision(&self) -> &Option<String>
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:
This field is required.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 get_status(&self) -> &Option<PackageVersionStatus>
pub fn get_status(&self) -> &Option<PackageVersionStatus>
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 get_origin(&self) -> &Option<PackageVersionOrigin>
pub fn get_origin(&self) -> &Option<PackageVersionOrigin>
A PackageVersionOrigin object that contains information about how the package version was added to the repository.
sourcepub fn build(self) -> Result<PackageVersionSummary, BuildError>
pub fn build(self) -> Result<PackageVersionSummary, BuildError>
Consumes the builder and constructs a PackageVersionSummary
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for PackageVersionSummaryBuilder
impl Clone for PackageVersionSummaryBuilder
source§fn clone(&self) -> PackageVersionSummaryBuilder
fn clone(&self) -> PackageVersionSummaryBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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
source§impl PartialEq for PackageVersionSummaryBuilder
impl PartialEq for PackageVersionSummaryBuilder
source§fn eq(&self, other: &PackageVersionSummaryBuilder) -> bool
fn eq(&self, other: &PackageVersionSummaryBuilder) -> bool
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for PackageVersionSummaryBuilder
Auto Trait Implementations§
impl Freeze for PackageVersionSummaryBuilder
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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