Enum cargo_clone::CloneMethodKind
source · pub enum CloneMethodKind {
Crate,
Git,
Mercurial,
Pijul,
Fossil,
Auto,
}Expand description
An enum representation of supported cloning methods.
Variants§
Crate
Downloads the .crate file from the registry and extracts it.
Git
Clones using git.
Mercurial
Clones using hg.
Pijul
Clones using pijul.
Fossil
Clones using fossil.
Auto
Attempts to automatically detect which method to use using heuristics.
Implementations§
source§impl CloneMethodKind
impl CloneMethodKind
sourcepub fn from(method_name: &str) -> Option<CloneMethodKind>
pub fn from(method_name: &str) -> Option<CloneMethodKind>
Creates a CloneMethodKind from a method name. If no name matches then None is returned.
Current options are crate, git, hg, mercurial, pijul, fossil, and auto
Trait Implementations§
source§impl Clone for CloneMethodKind
impl Clone for CloneMethodKind
source§fn clone(&self) -> CloneMethodKind
fn clone(&self) -> CloneMethodKind
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 more