#[non_exhaustive]pub struct PackageVersionOriginBuilder { /* private fields */ }
Expand description
A builder for PackageVersionOrigin
.
Implementations§
source§impl PackageVersionOriginBuilder
impl PackageVersionOriginBuilder
sourcepub fn domain_entry_point(self, input: DomainEntryPoint) -> Self
pub fn domain_entry_point(self, input: DomainEntryPoint) -> Self
A DomainEntryPoint object that contains information about from which repository or external connection the package version was added to the domain.
sourcepub fn set_domain_entry_point(self, input: Option<DomainEntryPoint>) -> Self
pub fn set_domain_entry_point(self, input: Option<DomainEntryPoint>) -> Self
A DomainEntryPoint object that contains information about from which repository or external connection the package version was added to the domain.
sourcepub fn get_domain_entry_point(&self) -> &Option<DomainEntryPoint>
pub fn get_domain_entry_point(&self) -> &Option<DomainEntryPoint>
A DomainEntryPoint object that contains information about from which repository or external connection the package version was added to the domain.
sourcepub fn origin_type(self, input: PackageVersionOriginType) -> Self
pub fn origin_type(self, input: PackageVersionOriginType) -> Self
Describes how the package version was originally added to the domain. An INTERNAL
origin type means the package version was published directly to a repository in the domain. An EXTERNAL
origin type means the package version was ingested from an external connection.
sourcepub fn set_origin_type(self, input: Option<PackageVersionOriginType>) -> Self
pub fn set_origin_type(self, input: Option<PackageVersionOriginType>) -> Self
Describes how the package version was originally added to the domain. An INTERNAL
origin type means the package version was published directly to a repository in the domain. An EXTERNAL
origin type means the package version was ingested from an external connection.
sourcepub fn get_origin_type(&self) -> &Option<PackageVersionOriginType>
pub fn get_origin_type(&self) -> &Option<PackageVersionOriginType>
Describes how the package version was originally added to the domain. An INTERNAL
origin type means the package version was published directly to a repository in the domain. An EXTERNAL
origin type means the package version was ingested from an external connection.
sourcepub fn build(self) -> PackageVersionOrigin
pub fn build(self) -> PackageVersionOrigin
Consumes the builder and constructs a PackageVersionOrigin
.
Trait Implementations§
source§impl Clone for PackageVersionOriginBuilder
impl Clone for PackageVersionOriginBuilder
source§fn clone(&self) -> PackageVersionOriginBuilder
fn clone(&self) -> PackageVersionOriginBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PackageVersionOriginBuilder
impl Debug for PackageVersionOriginBuilder
source§impl Default for PackageVersionOriginBuilder
impl Default for PackageVersionOriginBuilder
source§fn default() -> PackageVersionOriginBuilder
fn default() -> PackageVersionOriginBuilder
source§impl PartialEq for PackageVersionOriginBuilder
impl PartialEq for PackageVersionOriginBuilder
source§fn eq(&self, other: &PackageVersionOriginBuilder) -> bool
fn eq(&self, other: &PackageVersionOriginBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.