pub struct CargoConfig {
pub safe_subcommands: Vec<String>,
pub allowed_with_config: Vec<String>,
pub config_env: HashMap<String, String>,
}Expand description
Cargo subcommand evaluation rules.
Fields§
§safe_subcommands: Vec<String>Subcommands that are always allowed (e.g. build, test, check, clippy).
allowed_with_config: Vec<String>Subcommands allowed only when all config_env entries match.
config_env: HashMap<String, String>Environment variable requirements for allowed_with_config subcommands.
Trait Implementations§
Source§impl Debug for CargoConfig
impl Debug for CargoConfig
Source§impl Default for CargoConfig
impl Default for CargoConfig
Source§fn default() -> CargoConfig
fn default() -> CargoConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CargoConfig
impl<'de> Deserialize<'de> for CargoConfig
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 CargoConfig
impl RefUnwindSafe for CargoConfig
impl Send for CargoConfig
impl Sync for CargoConfig
impl Unpin for CargoConfig
impl UnsafeUnpin for CargoConfig
impl UnwindSafe for CargoConfig
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