#[non_exhaustive]pub struct PackageOriginRestrictions { /* private fields */ }
Expand description
Details about the origin restrictions set on the package. The package origin restrictions determine how new versions of a package can be added to a specific repository.
Implementations§
source§impl PackageOriginRestrictions
impl PackageOriginRestrictions
sourcepub fn publish(&self) -> Option<&AllowPublish>
pub fn publish(&self) -> Option<&AllowPublish>
The package origin configuration that determines if new versions of the package can be published directly to the repository.
sourcepub fn upstream(&self) -> Option<&AllowUpstream>
pub fn upstream(&self) -> Option<&AllowUpstream>
The package origin configuration that determines if new versions of the package can be added to the repository from an external connection or upstream source.
source§impl PackageOriginRestrictions
impl PackageOriginRestrictions
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture PackageOriginRestrictions
.
Trait Implementations§
source§impl Clone for PackageOriginRestrictions
impl Clone for PackageOriginRestrictions
source§fn clone(&self) -> PackageOriginRestrictions
fn clone(&self) -> PackageOriginRestrictions
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 PackageOriginRestrictions
impl Debug for PackageOriginRestrictions
source§impl PartialEq<PackageOriginRestrictions> for PackageOriginRestrictions
impl PartialEq<PackageOriginRestrictions> for PackageOriginRestrictions
source§fn eq(&self, other: &PackageOriginRestrictions) -> bool
fn eq(&self, other: &PackageOriginRestrictions) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.