pub enum ArtifactRef {
Material {
id: MaterialId,
property: Option<String>,
},
Produced {
id: ArtifactId,
property: Option<String>,
},
}Expand description
Reference to an artifact (either a material or a produced artifact).
Variants§
Material
References a pre-loaded material.
Fields
§
id: MaterialIdMaterial ID.
Produced
References an artifact produced by an earlier step.
Implementations§
Source§impl ArtifactRef
impl ArtifactRef
Sourcepub fn display_name(&self) -> String
pub fn display_name(&self) -> String
Get a display name for this reference.
Sourcepub fn artifact_id(&self) -> ArtifactId
pub fn artifact_id(&self) -> ArtifactId
Get the artifact ID from this reference.
Trait Implementations§
Source§impl Clone for ArtifactRef
impl Clone for ArtifactRef
Auto Trait Implementations§
impl Freeze for ArtifactRef
impl RefUnwindSafe for ArtifactRef
impl Send for ArtifactRef
impl Sync for ArtifactRef
impl Unpin for ArtifactRef
impl UnsafeUnpin for ArtifactRef
impl UnwindSafe for ArtifactRef
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