pub struct CloneManagerOptions {
pub concurrency: usize,
pub clone_options: CloneOptions,
pub structure: String,
pub prefer_ssh: bool,
pub dry_run: bool,
}Expand description
Options for the clone manager.
Fields§
§concurrency: usizeMaximum number of concurrent clones
clone_options: CloneOptionsClone options (depth, branch, submodules)
structure: StringDirectory structure template Supports: {provider}, {org}, {repo}
prefer_ssh: boolWhether to use SSH URLs (vs HTTPS)
dry_run: boolWhether this is a dry run
Implementations§
Source§impl CloneManagerOptions
impl CloneManagerOptions
Sourcepub fn with_concurrency(self, concurrency: usize) -> Self
pub fn with_concurrency(self, concurrency: usize) -> Self
Sets the concurrency level, clamped to [MIN_CONCURRENCY, MAX_CONCURRENCY].
Returns the options with the effective concurrency set.
Use [effective_concurrency] to check if the value was capped.
Sourcepub fn check_concurrency_cap(requested: usize) -> Option<usize>
pub fn check_concurrency_cap(requested: usize) -> Option<usize>
Checks if a requested concurrency exceeds the maximum.
Returns Some(MAX_CONCURRENCY) if capping occurred, None otherwise.
Sourcepub fn with_clone_options(self, options: CloneOptions) -> Self
pub fn with_clone_options(self, options: CloneOptions) -> Self
Sets the clone options.
Sourcepub fn with_structure(self, structure: impl Into<String>) -> Self
pub fn with_structure(self, structure: impl Into<String>) -> Self
Sets the directory structure.
Sourcepub fn with_dry_run(self, dry_run: bool) -> Self
pub fn with_dry_run(self, dry_run: bool) -> Self
Sets dry run mode.
Trait Implementations§
Source§impl Clone for CloneManagerOptions
impl Clone for CloneManagerOptions
Source§fn clone(&self) -> CloneManagerOptions
fn clone(&self) -> CloneManagerOptions
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 moreSource§impl Debug for CloneManagerOptions
impl Debug for CloneManagerOptions
Auto Trait Implementations§
impl Freeze for CloneManagerOptions
impl RefUnwindSafe for CloneManagerOptions
impl Send for CloneManagerOptions
impl Sync for CloneManagerOptions
impl Unpin for CloneManagerOptions
impl UnsafeUnpin for CloneManagerOptions
impl UnwindSafe for CloneManagerOptions
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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