[−][src]Struct cargo_clone::Cloner
A struct containg all url and workspace information necessary to clone a crate.
Implementations
impl Cloner[src]
pub fn new() -> Cloner[src]
Create a Crate Cloner using all the default settings
pub fn set_registry_url(&mut self, value: impl Into<String>) -> &mut Self[src]
Sets the URL to use for downloading .crate files from crates.io.
pub fn set_github_url(&mut self, value: impl Into<String>) -> &mut Self[src]
Sets the URL to use for downloading GitHub repositories.
pub fn set_gitlab_url(&mut self, value: impl Into<String>) -> &mut Self[src]
Sets the URL to use for downloading GitLab repositories.
pub fn set_bitbucket_url(&mut self, value: impl Into<String>) -> &mut Self[src]
Sets the URL to use for downloading Bitbucket repositories.
pub fn set_out_dir(&mut self, value: impl Into<PathBuf>) -> &mut Self[src]
Sets the directory where the clone will be done.
The package will appear as a directory underneath the given path.
pub fn clone(
&self,
method_kind: CloneMethodKind,
spec: &str,
version: Option<&str>,
extra: &[&str]
) -> Result<(), Error>[src]
&self,
method_kind: CloneMethodKind,
spec: &str,
version: Option<&str>,
extra: &[&str]
) -> Result<(), Error>
Clones a crate using the provided method.
method_kind- Method to fetch crate.spec- The name of the crate to cloneversion- The semantic version (semver) of the spec crate to cloneextra- Additional arguments passed to clone command.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Cloner
impl Send for Cloner
impl Sync for Cloner
impl Unpin for Cloner
impl UnwindSafe for Cloner
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T> Instrument for T[src]
fn instrument(self, span: Span) -> Instrumented<Self>[src]
fn in_current_span(self) -> Instrumented<Self>[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,