pub struct CargoInstall {
pub crate_name: String,
pub version: String,
pub source: Option<String>,
pub revision: Option<String>,
pub locked: bool,
pub features: Vec<String>,
pub bins: Vec<String>,
pub target: Option<String>,
pub toolchain: Option<String>,
pub profile: String,
pub build_env_allow: Vec<String>,
}Expand description
Inputs for a managed Cargo installation.
Fields§
§crate_name: StringCrate package name.
version: StringCargo version requirement.
source: Option<String>Optional named registry or Git source.
revision: Option<String>Pinned revision for Git-backed sources.
locked: boolWhether Cargo must honor the package lockfile.
features: Vec<String>Cargo features enabled for the build.
bins: Vec<String>Expected executable names activated from the result.
target: Option<String>Optional compilation target triple.
toolchain: Option<String>Optional Rust toolchain used to invoke Cargo.
profile: StringCargo build profile.
build_env_allow: Vec<String>Environment variable names forwarded into the build.
Trait Implementations§
Source§impl Clone for CargoInstall
impl Clone for CargoInstall
Source§fn clone(&self) -> CargoInstall
fn clone(&self) -> CargoInstall
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CargoInstall
impl Debug for CargoInstall
Source§impl<'de> Deserialize<'de> for CargoInstall
impl<'de> Deserialize<'de> for CargoInstall
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
impl Eq for CargoInstall
Source§impl JsonSchema for CargoInstall
impl JsonSchema for CargoInstall
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for CargoInstall
impl PartialEq for CargoInstall
Source§impl Serialize for CargoInstall
impl Serialize for CargoInstall
impl StructuralPartialEq for CargoInstall
Auto Trait Implementations§
impl Freeze for CargoInstall
impl RefUnwindSafe for CargoInstall
impl Send for CargoInstall
impl Sync for CargoInstall
impl Unpin for CargoInstall
impl UnsafeUnpin for CargoInstall
impl UnwindSafe for CargoInstall
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
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
Compare self to
key and return true if they are equal.