pub struct DistributionRepositoryBuilder { /* private fields */ }
Expand description
Builder for DistributionRepository
.
Implementations§
Source§impl DistributionRepositoryBuilder
impl DistributionRepositoryBuilder
pub fn id<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn name<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn url(&mut self, value: String) -> &mut Self
pub fn layout<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn update_policy<VALUE: Into<UpdatePolicy>>( &mut self, value: VALUE, ) -> &mut Self
pub fn checksum_policy<VALUE: Into<ChecksumPolicy>>( &mut self, value: VALUE, ) -> &mut Self
Sourcepub fn build(
&self,
) -> Result<DistributionRepository, DistributionRepositoryBuilderError>
pub fn build( &self, ) -> Result<DistributionRepository, DistributionRepositoryBuilderError>
Trait Implementations§
Source§impl Clone for DistributionRepositoryBuilder
impl Clone for DistributionRepositoryBuilder
Source§fn clone(&self) -> DistributionRepositoryBuilder
fn clone(&self) -> DistributionRepositoryBuilder
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 moreAuto Trait Implementations§
impl Freeze for DistributionRepositoryBuilder
impl RefUnwindSafe for DistributionRepositoryBuilder
impl Send for DistributionRepositoryBuilder
impl Sync for DistributionRepositoryBuilder
impl Unpin for DistributionRepositoryBuilder
impl UnwindSafe for DistributionRepositoryBuilder
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