#[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 ==
.impl StructuralPartialEq for PackageOriginRestrictions
Auto Trait Implementations§
impl Freeze for PackageOriginRestrictions
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
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