#[non_exhaustive]pub struct PackageOriginRestrictions {
pub publish: AllowPublish,
pub upstream: AllowUpstream,
}
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.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.publish: AllowPublish
The package origin configuration that determines if new versions of the package can be published directly to the repository.
upstream: 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.
Implementations§
source§impl PackageOriginRestrictions
impl PackageOriginRestrictions
sourcepub fn publish(&self) -> &AllowPublish
pub fn publish(&self) -> &AllowPublish
The package origin configuration that determines if new versions of the package can be published directly to the repository.
sourcepub fn upstream(&self) -> &AllowUpstream
pub fn upstream(&self) -> &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() -> PackageOriginRestrictionsBuilder
pub fn builder() -> PackageOriginRestrictionsBuilder
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
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PackageOriginRestrictions
impl Debug for PackageOriginRestrictions
source§impl PartialEq for PackageOriginRestrictions
impl PartialEq for PackageOriginRestrictions
source§fn eq(&self, other: &PackageOriginRestrictions) -> bool
fn eq(&self, other: &PackageOriginRestrictions) -> bool
self
and other
values to be equal, and is used
by ==
.