pub struct InstallInstructions {
pub brew: Option<String>,
pub apt: Option<String>,
pub pacman: Option<String>,
pub cargo: Option<String>,
pub scoop: 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>§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
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