pub struct PackageToolDef {Show 13 fields
pub detect: CommandCheckInput,
pub apt: Vec<String>,
pub apt_update: bool,
pub brew: Vec<String>,
pub brew_detect: Option<CommandCheckInput>,
pub winget: Option<String>,
pub winget_arguments: Vec<String>,
pub winget_detect: Option<CommandCheckInput>,
pub display_name: Option<String>,
pub requires: Vec<String>,
pub provides: Vec<String>,
pub conflicts: Vec<String>,
pub optional: bool,
}Expand description
Compact cross-platform system-package declaration expanded into one canonical component.
Fields§
§detect: CommandCheckInputDefault command check shared by generated platform variants.
apt: Vec<String>Debian/Ubuntu package names.
apt_update: boolWhether the APT package index must be updated before installation.
brew: Vec<String>Homebrew formula names.
brew_detect: Option<CommandCheckInput>Homebrew-specific detection override.
winget: Option<String>winget package identifier.
winget_arguments: Vec<String>Additional arguments passed to winget installation.
winget_detect: Option<CommandCheckInput>winget-specific detection override.
display_name: Option<String>Optional human-readable component name.
requires: Vec<String>Component or capability dependencies.
provides: Vec<String>Capabilities supplied by the generated component.
conflicts: Vec<String>Components or capabilities that cannot be selected together.
optional: boolWhether interactive selection may omit this component.
Trait Implementations§
Source§impl Clone for PackageToolDef
impl Clone for PackageToolDef
Source§fn clone(&self) -> PackageToolDef
fn clone(&self) -> PackageToolDef
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 PackageToolDef
impl Debug for PackageToolDef
Source§impl<'de> Deserialize<'de> for PackageToolDef
impl<'de> Deserialize<'de> for PackageToolDef
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 PackageToolDef
Source§impl JsonSchema for PackageToolDef
impl JsonSchema for PackageToolDef
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 PackageToolDef
impl PartialEq for PackageToolDef
Source§impl Serialize for PackageToolDef
impl Serialize for PackageToolDef
impl StructuralPartialEq for PackageToolDef
Auto Trait Implementations§
impl Freeze for PackageToolDef
impl RefUnwindSafe for PackageToolDef
impl Send for PackageToolDef
impl Sync for PackageToolDef
impl Unpin for PackageToolDef
impl UnsafeUnpin for PackageToolDef
impl UnwindSafe for PackageToolDef
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.