pub struct RepositoryBuilder { /* private fields */ }
Expand description
Builder for Repository
.
Implementations§
Source§impl RepositoryBuilder
impl RepositoryBuilder
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
pub fn releases<VALUE: Into<SubRepositoryRules>>( &mut self, value: VALUE, ) -> &mut Self
pub fn snapshots<VALUE: Into<SubRepositoryRules>>( &mut self, value: VALUE, ) -> &mut Self
Sourcepub fn build(&self) -> Result<Repository, RepositoryBuilderError>
pub fn build(&self) -> Result<Repository, RepositoryBuilderError>
Trait Implementations§
Source§impl Clone for RepositoryBuilder
impl Clone for RepositoryBuilder
Source§fn clone(&self) -> RepositoryBuilder
fn clone(&self) -> RepositoryBuilder
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 RepositoryBuilder
impl RefUnwindSafe for RepositoryBuilder
impl Send for RepositoryBuilder
impl Sync for RepositoryBuilder
impl Unpin for RepositoryBuilder
impl UnwindSafe for RepositoryBuilder
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