pub struct InstallConfig {
pub tool_name: String,
pub version: String,
pub install_method: InstallMethod,
pub download_url: Option<String>,
pub install_dir: PathBuf,
pub force: bool,
pub checksum: Option<String>,
pub metadata: HashMap<String, String>,
}Expand description
Configuration for tool installation
Fields§
§tool_name: StringName of the tool to install
version: StringVersion to install
install_method: InstallMethodInstallation method
download_url: Option<String>Download URL (if applicable)
install_dir: PathBufInstallation directory
force: boolWhether to force reinstallation
checksum: Option<String>Checksum for verification
metadata: HashMap<String, String>Additional configuration
Implementations§
Source§impl InstallConfig
impl InstallConfig
Sourcepub fn builder() -> InstallConfigBuilder
pub fn builder() -> InstallConfigBuilder
Create a new builder
Trait Implementations§
Source§impl Clone for InstallConfig
impl Clone for InstallConfig
Source§fn clone(&self) -> InstallConfig
fn clone(&self) -> InstallConfig
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 InstallConfig
impl Debug for InstallConfig
Source§impl<'de> Deserialize<'de> for InstallConfig
impl<'de> Deserialize<'de> for InstallConfig
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 InstallConfig
impl RefUnwindSafe for InstallConfig
impl Send for InstallConfig
impl Sync for InstallConfig
impl Unpin for InstallConfig
impl UnwindSafe for InstallConfig
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