pub enum CargoSource {
Git {
url: String,
branch: Option<String>,
},
Path {
path: PathBuf,
},
}Expand description
Where cargo install should pull the crate from.
Variants§
Git
cargo install --git <url> (optionally --branch <branch>).
Fields
Path
cargo install --path <path> — local source tree.
Trait Implementations§
Source§impl Clone for CargoSource
impl Clone for CargoSource
Source§fn clone(&self) -> CargoSource
fn clone(&self) -> CargoSource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CargoSource
impl RefUnwindSafe for CargoSource
impl Send for CargoSource
impl Sync for CargoSource
impl Unpin for CargoSource
impl UnsafeUnpin for CargoSource
impl UnwindSafe for CargoSource
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