pub struct ClonerBuilder { /* private fields */ }
Expand description
Builder for Cloner
.
Implementations§
Source§impl ClonerBuilder
impl ClonerBuilder
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new ClonerBuilder
that:
- Uses crates.io as source.
- Clones the crates into the current directory.
Sourcepub fn with_context(self, context: GlobalContext) -> Self
pub fn with_context(self, context: GlobalContext) -> Self
Use the specified cargo configuration, instead of the default one.
Sourcepub fn with_directory(self, directory: impl Into<PathBuf>) -> Self
pub fn with_directory(self, directory: impl Into<PathBuf>) -> Self
Clone into a different directory, instead of the current one.
Sourcepub fn with_source(self, source: ClonerSource) -> Self
pub fn with_source(self, source: ClonerSource) -> Self
Clone from an alternative source, instead of crates.io.
Sourcepub fn with_git(self, use_git: bool) -> Self
pub fn with_git(self, use_git: bool) -> Self
Clone the git repository present in the manifest metadata.
Sourcepub fn build(self) -> CargoResult<Cloner>
pub fn build(self) -> CargoResult<Cloner>
Build the Cloner
.
Trait Implementations§
Source§impl Debug for ClonerBuilder
impl Debug for ClonerBuilder
Source§impl Default for ClonerBuilder
impl Default for ClonerBuilder
Source§fn default() -> ClonerBuilder
fn default() -> ClonerBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for ClonerBuilder
impl !RefUnwindSafe for ClonerBuilder
impl !Send for ClonerBuilder
impl !Sync for ClonerBuilder
impl Unpin for ClonerBuilder
impl !UnwindSafe for ClonerBuilder
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> 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