pub struct ComponentDef {Show 17 fields
pub id: String,
pub kind: InstallKind,
pub display_name: Option<String>,
pub version: Option<String>,
pub requires: Vec<String>,
pub provides: Vec<String>,
pub conflicts: Vec<String>,
pub optional: bool,
pub allow_insecure_hosts: Vec<String>,
pub platforms: Vec<String>,
pub detect: Option<CheckSpec>,
pub install: Option<InstallSpec>,
pub verify: Option<CheckSpec>,
pub variants: Vec<VariantDef>,
pub source: Option<String>,
pub revision: Option<String>,
pub agents: Vec<Agent>,
}Expand description
Canonical component definition resolved by profiles and lowered into plan nodes.
Fields§
§id: StringStable component identifier.
kind: InstallKindWhether the component installs a tool or an agent skill.
display_name: Option<String>Optional human-readable name.
version: Option<String>Version supplied by this component, used to identify older existing installations.
requires: Vec<String>Component or capability dependencies.
provides: Vec<String>Capabilities supplied by this component.
conflicts: Vec<String>Components or capabilities that cannot be selected together.
optional: boolWhether interactive selection may omit this component.
allow_insecure_hosts: Vec<String>Hosts for which this component may allow insecure TLS/HTTP access. Supported by pip and
uv-tool with concrete hosts or the * wildcard.
platforms: Vec<String>Platform selectors on which the component is eligible.
detect: Option<CheckSpec>Check used to detect an existing installation.
install: Option<InstallSpec>Typed installation operation.
verify: Option<CheckSpec>Check required to accept a completed installation.
variants: Vec<VariantDef>Platform-specific alternatives merged during resolution.
source: Option<String>Named source reference consumed by the selected backend.
revision: Option<String>Pinned upstream revision recorded with the installation.
agents: Vec<Agent>Agent destinations for skill components.
Trait Implementations§
Source§impl Clone for ComponentDef
impl Clone for ComponentDef
Source§fn clone(&self) -> ComponentDef
fn clone(&self) -> ComponentDef
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 ComponentDef
impl Debug for ComponentDef
Source§impl<'de> Deserialize<'de> for ComponentDef
impl<'de> Deserialize<'de> for ComponentDef
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 ComponentDef
Source§impl JsonSchema for ComponentDef
impl JsonSchema for ComponentDef
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 ComponentDef
impl PartialEq for ComponentDef
Source§impl Serialize for ComponentDef
impl Serialize for ComponentDef
impl StructuralPartialEq for ComponentDef
Auto Trait Implementations§
impl Freeze for ComponentDef
impl RefUnwindSafe for ComponentDef
impl Send for ComponentDef
impl Sync for ComponentDef
impl Unpin for ComponentDef
impl UnsafeUnpin for ComponentDef
impl UnwindSafe for ComponentDef
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.