pub struct CompilerWrapperSummary {
pub kind: String,
pub spec: String,
pub source: String,
pub version: Option<String>,
}Expand description
Lightweight, non-machine-specific summary of a resolved wrapper.
Carried inside crate::ToolchainSummary so the build
configuration fingerprint reflects “which wrapper did this build
use” without pinning the local absolute path.
Fields§
§kind: StringStable wrapper key (ccache / sccache).
spec: StringUser-visible spec spelling.
source: StringSource label (matches CompilerWrapperSource::as_key).
version: Option<String>Detected version, when probing succeeded. Stored as a
display string so the summary stays portable across
CompilerVersion schema changes.
Implementations§
Source§impl CompilerWrapperSummary
impl CompilerWrapperSummary
Sourcepub fn from_resolved(resolved: &ResolvedCompilerWrapper) -> Self
pub fn from_resolved(resolved: &ResolvedCompilerWrapper) -> Self
Build a summary from a resolved wrapper.
Trait Implementations§
Source§impl Clone for CompilerWrapperSummary
impl Clone for CompilerWrapperSummary
Source§fn clone(&self) -> CompilerWrapperSummary
fn clone(&self) -> CompilerWrapperSummary
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 CompilerWrapperSummary
impl Debug for CompilerWrapperSummary
Source§impl Default for CompilerWrapperSummary
impl Default for CompilerWrapperSummary
Source§fn default() -> CompilerWrapperSummary
fn default() -> CompilerWrapperSummary
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CompilerWrapperSummary
impl<'de> Deserialize<'de> for CompilerWrapperSummary
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 CompilerWrapperSummary
impl PartialEq for CompilerWrapperSummary
Source§fn eq(&self, other: &CompilerWrapperSummary) -> bool
fn eq(&self, other: &CompilerWrapperSummary) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CompilerWrapperSummary
impl Serialize for CompilerWrapperSummary
impl Eq for CompilerWrapperSummary
impl StructuralPartialEq for CompilerWrapperSummary
Auto Trait Implementations§
impl Freeze for CompilerWrapperSummary
impl RefUnwindSafe for CompilerWrapperSummary
impl Send for CompilerWrapperSummary
impl Sync for CompilerWrapperSummary
impl Unpin for CompilerWrapperSummary
impl UnsafeUnpin for CompilerWrapperSummary
impl UnwindSafe for CompilerWrapperSummary
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.