pub struct ToolchainDetectionReport {
pub cxx: ToolDetection<CompilerIdentity, CompilerCapabilities>,
pub cc: Option<ToolDetection<CompilerIdentity, CompilerCapabilities>>,
pub ar: ToolDetection<ArchiverIdentity, ArchiverCapabilities>,
}Expand description
Whole-toolchain detection report. The CLI builds one per invocation that needs detection (build / metadata) and threads it into the planner and the metadata view.
Fields§
§cxx: ToolDetection<CompilerIdentity, CompilerCapabilities>§cc: Option<ToolDetection<CompilerIdentity, CompilerCapabilities>>Optional because ResolvedToolchain.cc is itself optional.
ar: ToolDetection<ArchiverIdentity, ArchiverCapabilities>Implementations§
Source§impl ToolchainDetectionReport
impl ToolchainDetectionReport
Sourcepub fn as_json(&self) -> Value
pub fn as_json(&self) -> Value
Compact, deterministic JSON view used by cabin metadata
and any tooling that wants to inspect detection results
without re-deriving them. Each tool block carries
path / identity / capabilities; absent tools (a
missing C compiler) are omitted entirely so the JSON
shape stays stable.
Trait Implementations§
Source§impl Clone for ToolchainDetectionReport
impl Clone for ToolchainDetectionReport
Source§fn clone(&self) -> ToolchainDetectionReport
fn clone(&self) -> ToolchainDetectionReport
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 ToolchainDetectionReport
impl Debug for ToolchainDetectionReport
Source§impl<'de> Deserialize<'de> for ToolchainDetectionReport
impl<'de> Deserialize<'de> for ToolchainDetectionReport
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
Source§impl PartialEq for ToolchainDetectionReport
impl PartialEq for ToolchainDetectionReport
Source§fn eq(&self, other: &ToolchainDetectionReport) -> bool
fn eq(&self, other: &ToolchainDetectionReport) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ToolchainDetectionReport
impl Serialize for ToolchainDetectionReport
impl Eq for ToolchainDetectionReport
impl StructuralPartialEq for ToolchainDetectionReport
Auto Trait Implementations§
impl Freeze for ToolchainDetectionReport
impl RefUnwindSafe for ToolchainDetectionReport
impl Send for ToolchainDetectionReport
impl Sync for ToolchainDetectionReport
impl Unpin for ToolchainDetectionReport
impl UnsafeUnpin for ToolchainDetectionReport
impl UnwindSafe for ToolchainDetectionReport
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,
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.