Struct git_cache::GitCacheClonerBuilder
source · 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 commit(&mut self, value: Option<String>) -> &mut Self
pub fn extra_clone_args(&mut self, value: Option<Vec<String>>) -> &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 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 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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)