pub enum InstallMethod {
Archive {
format: ArchiveFormat,
},
PackageManager {
manager: String,
package: String,
},
Script {
url: String,
},
Binary,
Custom {
method: String,
},
}Expand description
Different methods for installing tools
Variants§
Archive
Download and extract archive
Fields
§
format: ArchiveFormatPackageManager
Use system package manager
Script
Run installation script
Binary
Download single binary
Custom
Custom installation method
Trait Implementations§
Source§impl Clone for InstallMethod
impl Clone for InstallMethod
Source§fn clone(&self) -> InstallMethod
fn clone(&self) -> InstallMethod
Returns a duplicate 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 moreSource§impl Debug for InstallMethod
impl Debug for InstallMethod
Source§impl<'de> Deserialize<'de> for InstallMethod
impl<'de> Deserialize<'de> for InstallMethod
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for InstallMethod
impl RefUnwindSafe for InstallMethod
impl Send for InstallMethod
impl Sync for InstallMethod
impl Unpin for InstallMethod
impl UnwindSafe for InstallMethod
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