Enum cargo_subcommand::EnvOption
source · Expand description
Serializable environment variable in cargo config, configurable as per https://doc.rust-lang.org/cargo/reference/config.html#env,
Variants§
Implementations§
source§impl EnvOption
impl EnvOption
sourcepub fn resolve_value(
&self,
config_parent: impl AsRef<Path>
) -> Result<Cow<'_, str>, EnvError>
pub fn resolve_value(
&self,
config_parent: impl AsRef<Path>
) -> Result<Cow<'_, str>, EnvError>
Retrieve the value and canonicalize it relative to config_parent when EnvOption::Value::relative is set.
config_parent is the directory containing .cargo/config.toml where this was parsed from.
Trait Implementations§
source§impl<'de> Deserialize<'de> for EnvOption
impl<'de> Deserialize<'de> for EnvOption
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