#[non_exhaustive]pub struct PackageOriginRestrictionsBuilder { /* private fields */ }
Expand description
A builder for PackageOriginRestrictions
.
Implementations§
source§impl PackageOriginRestrictionsBuilder
impl PackageOriginRestrictionsBuilder
sourcepub fn publish(self, input: AllowPublish) -> Self
pub fn publish(self, input: AllowPublish) -> Self
The package origin configuration that determines if new versions of the package can be published directly to the repository.
sourcepub fn set_publish(self, input: Option<AllowPublish>) -> Self
pub fn set_publish(self, input: Option<AllowPublish>) -> Self
The package origin configuration that determines if new versions of the package can be published directly to the repository.
sourcepub fn upstream(self, input: AllowUpstream) -> Self
pub fn upstream(self, input: AllowUpstream) -> Self
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.
sourcepub fn set_upstream(self, input: Option<AllowUpstream>) -> Self
pub fn set_upstream(self, input: Option<AllowUpstream>) -> Self
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.
sourcepub fn build(self) -> PackageOriginRestrictions
pub fn build(self) -> PackageOriginRestrictions
Consumes the builder and constructs a PackageOriginRestrictions
.
Trait Implementations§
source§impl Clone for PackageOriginRestrictionsBuilder
impl Clone for PackageOriginRestrictionsBuilder
source§fn clone(&self) -> PackageOriginRestrictionsBuilder
fn clone(&self) -> PackageOriginRestrictionsBuilder
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 Default for PackageOriginRestrictionsBuilder
impl Default for PackageOriginRestrictionsBuilder
source§fn default() -> PackageOriginRestrictionsBuilder
fn default() -> PackageOriginRestrictionsBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq<PackageOriginRestrictionsBuilder> for PackageOriginRestrictionsBuilder
impl PartialEq<PackageOriginRestrictionsBuilder> for PackageOriginRestrictionsBuilder
source§fn eq(&self, other: &PackageOriginRestrictionsBuilder) -> bool
fn eq(&self, other: &PackageOriginRestrictionsBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PackageOriginRestrictionsBuilder
Auto Trait Implementations§
impl RefUnwindSafe for PackageOriginRestrictionsBuilder
impl Send for PackageOriginRestrictionsBuilder
impl Sync for PackageOriginRestrictionsBuilder
impl Unpin for PackageOriginRestrictionsBuilder
impl UnwindSafe for PackageOriginRestrictionsBuilder
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