pub struct Builder { /* private fields */ }
Expand description
A builder for PackageOriginRestrictions
.
Implementations§
source§impl Builder
impl Builder
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
.