pub enum InstallSpec {
LocalPath(PathBuf),
Crate {
name: String,
version: String,
},
Github {
owner: String,
repo: String,
tag: String,
},
}Expand description
Parsed install source for install.
Variants§
LocalPath(PathBuf)
Local Cargo project directory (path:<dir>).
Crate
crates.io crate (crate:<name>@<version>).
Fields
Github
GitHub release (gh:<owner>/<repo>@<tag|latest>).
Trait Implementations§
Source§impl Clone for InstallSpec
impl Clone for InstallSpec
Source§fn clone(&self) -> InstallSpec
fn clone(&self) -> InstallSpec
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 InstallSpec
impl RefUnwindSafe for InstallSpec
impl Send for InstallSpec
impl Sync for InstallSpec
impl Unpin for InstallSpec
impl UnsafeUnpin for InstallSpec
impl UnwindSafe for InstallSpec
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