pub struct ManagerCommands {
pub is_installed: Option<&'static str>,
pub install: &'static str,
pub uninstall: &'static str,
pub sudo_install: bool,
pub sudo_uninstall: bool,
}Expand description
Represents the shell commands needed to operate a specific package manager.
Fields§
§is_installed: Option<&'static str>Command to check if a package is installed.
install: &'static strCommand to install a package.
uninstall: &'static strCommand to uninstall a package.
sudo_install: boolWhether the install command requires sudo privileges.
sudo_uninstall: boolWhether the uninstall command requires sudo privileges.
Trait Implementations§
Source§impl Clone for ManagerCommands
impl Clone for ManagerCommands
Source§fn clone(&self) -> ManagerCommands
fn clone(&self) -> ManagerCommands
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 moreAuto Trait Implementations§
impl Freeze for ManagerCommands
impl RefUnwindSafe for ManagerCommands
impl Send for ManagerCommands
impl Sync for ManagerCommands
impl Unpin for ManagerCommands
impl UnsafeUnpin for ManagerCommands
impl UnwindSafe for ManagerCommands
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more