#[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 ==
.impl StructuralPartialEq for PackageVersionOriginBuilder
Auto Trait Implementations§
impl Freeze for PackageVersionOriginBuilder
impl RefUnwindSafe for PackageVersionOriginBuilder
impl Send for PackageVersionOriginBuilder
impl Sync for PackageVersionOriginBuilder
impl Unpin for PackageVersionOriginBuilder
impl UnwindSafe for PackageVersionOriginBuilder
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> 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