pub struct StepMetadata {
name: String,
kind: Kind,
target: TargetSelection,
built_by: Option<Compiler>,
stage: Option<u32>,
metadata: Option<String>,
}
Expand description
Metadata that describes an executed step, mostly for testing and tracing.
Fields§
§name: String
§kind: Kind
§target: TargetSelection
§built_by: Option<Compiler>
§stage: Option<u32>
§metadata: Option<String>
Additional opaque string printed in the metadata
Implementations§
Source§impl StepMetadata
impl StepMetadata
pub fn build(name: &str, target: TargetSelection) -> Self
pub fn check(name: &str, target: TargetSelection) -> Self
pub fn clippy(name: &str, target: TargetSelection) -> Self
pub fn doc(name: &str, target: TargetSelection) -> Self
pub fn dist(name: &str, target: TargetSelection) -> Self
pub fn test(name: &str, target: TargetSelection) -> Self
pub fn run(name: &str, target: TargetSelection) -> Self
fn new(name: &str, target: TargetSelection, kind: Kind) -> Self
pub fn built_by(self, compiler: Compiler) -> Self
pub fn stage(self, stage: u32) -> Self
pub fn with_metadata(self, metadata: String) -> Self
pub fn get_stage(&self) -> Option<u32>
pub fn get_name(&self) -> &str
pub fn get_target(&self) -> TargetSelection
Trait Implementations§
Source§impl Clone for StepMetadata
impl Clone for StepMetadata
Source§fn clone(&self) -> StepMetadata
fn clone(&self) -> StepMetadata
Returns a duplicate of the value. Read more
1.0.0 · 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 StepMetadata
impl Debug for StepMetadata
Source§impl PartialEq for StepMetadata
impl PartialEq for StepMetadata
impl Eq for StepMetadata
impl StructuralPartialEq for StepMetadata
Auto Trait Implementations§
impl Freeze for StepMetadata
impl RefUnwindSafe for StepMetadata
impl Send for StepMetadata
impl Sync for StepMetadata
impl Unpin for StepMetadata
impl UnwindSafe for StepMetadata
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> Pointable for T
impl<T> Pointable for T
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 136 bytes