pub struct CargoToolDef {Show 18 fields
pub version: String,
pub crate_name: Option<String>,
pub bin: Option<String>,
pub bins: Vec<String>,
pub detect: Option<Vec<String>>,
pub platforms: Vec<String>,
pub requires: Vec<String>,
pub provides: Vec<String>,
pub conflicts: Vec<String>,
pub optional: bool,
pub features: Vec<String>,
pub target: Option<String>,
pub toolchain: Option<String>,
pub profile: Option<String>,
pub source: Option<String>,
pub revision: Option<String>,
pub locked: bool,
pub build_env_allow: Vec<String>,
}Expand description
Compact declaration expanded into a Cargo-backed component.
Fields§
§version: StringExact or normalized Cargo version requirement.
crate_name: Option<String>Crate name when it differs from the declaration key.
bin: Option<String>Single expected binary name.
bins: Vec<String>Expected binary names when the crate installs more than one executable.
detect: Option<Vec<String>>Command vector used to detect an existing installation.
platforms: Vec<String>Platform selectors on which the generated component is eligible.
requires: Vec<String>Component or capability dependencies.
provides: Vec<String>Capability names supplied by the generated component.
conflicts: Vec<String>Components or capabilities that cannot be selected together.
optional: boolWhether interactive selection may omit this component.
features: Vec<String>Cargo features enabled for the build.
target: Option<String>Optional Cargo compilation target.
toolchain: Option<String>Optional Rust toolchain used to invoke Cargo.
profile: Option<String>Cargo build profile; defaults to release after expansion.
source: Option<String>Named Cargo registry or Git source reference.
revision: Option<String>Pinned source revision for Git-backed Cargo installs.
locked: boolWhether Cargo must install with lockfile enforcement.
build_env_allow: Vec<String>Environment variable names forwarded into the Cargo build.
Trait Implementations§
Source§impl Clone for CargoToolDef
impl Clone for CargoToolDef
Source§fn clone(&self) -> CargoToolDef
fn clone(&self) -> CargoToolDef
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CargoToolDef
impl Debug for CargoToolDef
Source§impl<'de> Deserialize<'de> for CargoToolDef
impl<'de> Deserialize<'de> for CargoToolDef
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>,
impl Eq for CargoToolDef
Source§impl JsonSchema for CargoToolDef
impl JsonSchema for CargoToolDef
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl PartialEq for CargoToolDef
impl PartialEq for CargoToolDef
Source§impl Serialize for CargoToolDef
impl Serialize for CargoToolDef
impl StructuralPartialEq for CargoToolDef
Auto Trait Implementations§
impl Freeze for CargoToolDef
impl RefUnwindSafe for CargoToolDef
impl Send for CargoToolDef
impl Sync for CargoToolDef
impl Unpin for CargoToolDef
impl UnsafeUnpin for CargoToolDef
impl UnwindSafe for CargoToolDef
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.