#[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() -> 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
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 ==
.impl StructuralPartialEq for PackageOriginRestrictions
Auto Trait Implementations§
impl RefUnwindSafe for PackageOriginRestrictions
impl Send for PackageOriginRestrictions
impl Sync for PackageOriginRestrictions
impl Unpin for PackageOriginRestrictions
impl UnwindSafe for PackageOriginRestrictions
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
Mutably borrows from an owned value. Read more