pub struct InstallMethod {
pub method: String,
pub package: Option<String>,
pub command: Option<String>,
pub path_hints: Vec<String>,
}Fields§
§method: Stringnpm | brew | brew-cask | pip | uv-tool | script | manual
package: Option<String>§command: Option<String>Shell command for script / instructions for manual ({version} is substituted).
path_hints: Vec<String>Substrings of the binary’s real path that identify this install 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 (const: unstable) · 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 Default for InstallMethod
impl Default for InstallMethod
Source§fn default() -> InstallMethod
fn default() -> InstallMethod
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for InstallMethodwhere
InstallMethod: Default,
impl<'de> Deserialize<'de> for InstallMethodwhere
InstallMethod: Default,
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<InstallMethod, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<InstallMethod, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for InstallMethod
impl Serialize for InstallMethod
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. 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 UnsafeUnpin 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