pub struct PackageManagerConfig {
pub commands: HashMap<CommandType, Vec<String>>,
pub list_parser: ListParser,
pub prompt_arg: PromptArgument,
pub prompt_for: Vec<CommandType>,
pub version_arg: VersionArgument,
}Expand description
Configuration for a specific package manager vendor. The fields define commands and arguments for common operations.
Fields§
§commands: HashMap<CommandType, Vec<String>>Mapping of command types to CLI arguments.
list_parser: ListParserParser for extracting information from installed lists.
prompt_arg: PromptArgumentHow interactive/prompt arguments are handled.
prompt_for: Vec<CommandType>List of commands that support prompts.
version_arg: VersionArgumentHow version arguments are handled.
Trait Implementations§
Source§impl Clone for PackageManagerConfig
impl Clone for PackageManagerConfig
Source§fn clone(&self) -> PackageManagerConfig
fn clone(&self) -> PackageManagerConfig
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 moreAuto Trait Implementations§
impl Freeze for PackageManagerConfig
impl RefUnwindSafe for PackageManagerConfig
impl Send for PackageManagerConfig
impl Sync for PackageManagerConfig
impl Unpin for PackageManagerConfig
impl UnwindSafe for PackageManagerConfig
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