pub struct InstallInstructions {Show 14 fields
pub brew: Option<String>,
pub apt: Option<String>,
pub pacman: Option<String>,
pub cargo: Option<String>,
pub scoop: Option<String>,
pub dnf: Option<String>,
pub yum: Option<String>,
pub emerge: Option<String>,
pub apk: Option<String>,
pub zypper: Option<String>,
pub nix_env: Option<String>,
pub pip: Option<String>,
pub npm: Option<String>,
pub others: HashMap<String, String>,
}Expand description
Cross-platform installation instructions.
Fields§
§brew: Option<String>§apt: Option<String>§pacman: Option<String>§cargo: Option<String>§scoop: Option<String>§dnf: Option<String>§yum: Option<String>§emerge: Option<String>§apk: Option<String>§zypper: Option<String>§nix_env: Option<String>§pip: Option<String>§npm: Option<String>§others: HashMap<String, String>Implementations§
Source§impl InstallInstructions
impl InstallInstructions
pub fn get_command(&self, key: &str) -> Option<&String>
Trait Implementations§
Source§impl Clone for InstallInstructions
impl Clone for InstallInstructions
Source§fn clone(&self) -> InstallInstructions
fn clone(&self) -> InstallInstructions
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 InstallInstructions
impl Debug for InstallInstructions
Source§impl Default for InstallInstructions
impl Default for InstallInstructions
Source§fn default() -> InstallInstructions
fn default() -> InstallInstructions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for InstallInstructions
impl<'de> Deserialize<'de> for InstallInstructions
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
impl Eq for InstallInstructions
Source§impl PartialEq for InstallInstructions
impl PartialEq for InstallInstructions
Source§fn eq(&self, other: &InstallInstructions) -> bool
fn eq(&self, other: &InstallInstructions) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for InstallInstructions
impl Serialize for InstallInstructions
impl StructuralPartialEq for InstallInstructions
Auto Trait Implementations§
impl Freeze for InstallInstructions
impl RefUnwindSafe for InstallInstructions
impl Send for InstallInstructions
impl Sync for InstallInstructions
impl Unpin for InstallInstructions
impl UnsafeUnpin for InstallInstructions
impl UnwindSafe for InstallInstructions
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