pub struct GitCacheClonerBuilder { /* private fields */ }
Expand description
Builder for GitCacheCloner
.
Implementations§
Source§impl GitCacheClonerBuilder
impl GitCacheClonerBuilder
pub fn cache_base_dir(&mut self, value: Utf8PathBuf) -> &mut Self
pub fn cached(&mut self, value: bool) -> &mut Self
pub fn update(&mut self, value: bool) -> &mut Self
pub fn target_path(&mut self, value: Option<Utf8PathBuf>) -> &mut Self
pub fn sparse_paths(&mut self, value: Option<Vec<String>>) -> &mut Self
pub fn recurse_submodules(&mut self, value: Option<Vec<String>>) -> &mut Self
pub fn recurse_all_submodules(&mut self, value: bool) -> &mut Self
pub fn shallow_submodules(&mut self, value: bool) -> &mut Self
pub fn commit(&mut self, value: Option<String>) -> &mut Self
pub fn extra_clone_args(&mut self, value: Option<Vec<String>>) -> &mut Self
pub fn jobs(&mut self, value: Option<usize>) -> &mut Self
Sourcepub fn build(&self) -> Result<GitCacheCloner, GitCacheClonerBuilderError>
pub fn build(&self) -> Result<GitCacheCloner, GitCacheClonerBuilderError>
Source§impl GitCacheClonerBuilder
impl GitCacheClonerBuilder
pub fn repository_url(&mut self, url: String) -> &mut Self
pub fn do_clone(&mut self) -> Result<(), Error>
pub fn extra_clone_args_from_matches( &mut self, matches: &ArgMatches, ) -> &mut Self
Trait Implementations§
Source§impl Clone for GitCacheClonerBuilder
impl Clone for GitCacheClonerBuilder
Source§fn clone(&self) -> GitCacheClonerBuilder
fn clone(&self) -> GitCacheClonerBuilder
Returns a duplicate 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 GitCacheClonerBuilder
impl RefUnwindSafe for GitCacheClonerBuilder
impl Send for GitCacheClonerBuilder
impl Sync for GitCacheClonerBuilder
impl Unpin for GitCacheClonerBuilder
impl UnwindSafe for GitCacheClonerBuilder
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Converts
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>
Converts
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