pub struct CargoProvider { /* private fields */ }Expand description
Provider for cargo command options
Implementations§
Source§impl CargoProvider
impl CargoProvider
Trait Implementations§
Source§impl Default for CargoProvider
impl Default for CargoProvider
Source§impl OptionProvider for CargoProvider
impl OptionProvider for CargoProvider
Source§fn get_options(&self, command: &str) -> Vec<OptionDef>
fn get_options(&self, command: &str) -> Vec<OptionDef>
Get all options available for a specific command
Source§fn validate(
&self,
command: &str,
option: &str,
value: Option<&str>,
) -> ValidationResult<()>
fn validate( &self, command: &str, option: &str, value: Option<&str>, ) -> ValidationResult<()>
Validate a specific option and its value
Source§fn get_commands(&self) -> Vec<String>
fn get_commands(&self) -> Vec<String>
Get commands supported by this provider
Source§fn supports_command(&self, command: &str) -> bool
fn supports_command(&self, command: &str) -> bool
Check if this provider supports a specific command
Auto Trait Implementations§
impl Freeze for CargoProvider
impl RefUnwindSafe for CargoProvider
impl Send for CargoProvider
impl Sync for CargoProvider
impl Unpin for CargoProvider
impl UnwindSafe for CargoProvider
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