#[non_exhaustive]pub struct PackageDescriptionBuilder { /* private fields */ }
Expand description
A builder for PackageDescription
.
Implementations§
source§impl PackageDescriptionBuilder
impl PackageDescriptionBuilder
sourcepub fn format(self, input: PackageFormat) -> Self
pub fn format(self, input: PackageFormat) -> Self
A format that specifies the type of the package.
sourcepub fn set_format(self, input: Option<PackageFormat>) -> Self
pub fn set_format(self, input: Option<PackageFormat>) -> Self
A format that specifies the type of the package.
sourcepub fn get_format(&self) -> &Option<PackageFormat>
pub fn get_format(&self) -> &Option<PackageFormat>
A format that specifies the type of the package.
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
. -
Python and NuGet packages do not contain a corresponding component, packages of those formats do not have a namespace.
-
The namespace of a generic package is its
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
. -
Python and NuGet packages do not contain a corresponding component, packages of those formats do not have a namespace.
-
The namespace of a generic package is its
namespace
.
sourcepub fn get_namespace(&self) -> &Option<String>
pub fn get_namespace(&self) -> &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 is its
groupId
. -
The namespace of an npm package is its
scope
. -
Python and NuGet packages do not contain a corresponding component, packages of those formats do not have a namespace.
-
The namespace of a generic package is its
namespace
.
sourcepub fn origin_configuration(self, input: PackageOriginConfiguration) -> Self
pub fn origin_configuration(self, input: PackageOriginConfiguration) -> Self
The package origin configuration for the package.
sourcepub fn set_origin_configuration(
self,
input: Option<PackageOriginConfiguration>
) -> Self
pub fn set_origin_configuration( self, input: Option<PackageOriginConfiguration> ) -> Self
The package origin configuration for the package.
sourcepub fn get_origin_configuration(&self) -> &Option<PackageOriginConfiguration>
pub fn get_origin_configuration(&self) -> &Option<PackageOriginConfiguration>
The package origin configuration for the package.
sourcepub fn build(self) -> PackageDescription
pub fn build(self) -> PackageDescription
Consumes the builder and constructs a PackageDescription
.
Trait Implementations§
source§impl Clone for PackageDescriptionBuilder
impl Clone for PackageDescriptionBuilder
source§fn clone(&self) -> PackageDescriptionBuilder
fn clone(&self) -> PackageDescriptionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PackageDescriptionBuilder
impl Debug for PackageDescriptionBuilder
source§impl Default for PackageDescriptionBuilder
impl Default for PackageDescriptionBuilder
source§fn default() -> PackageDescriptionBuilder
fn default() -> PackageDescriptionBuilder
source§impl PartialEq for PackageDescriptionBuilder
impl PartialEq for PackageDescriptionBuilder
source§fn eq(&self, other: &PackageDescriptionBuilder) -> bool
fn eq(&self, other: &PackageDescriptionBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.