pub struct Derivation {
pub name: String,
pub version: Version,
pub package_id: PackageId,
pub inputs: Vec<DerivationRef>,
pub build: BuildScript,
pub cache_key: ContentHash,
}Expand description
One derivation in the renderer’s output graph. Build system agnostic.
Fields§
§name: String§version: Version§package_id: PackageIdSource package this derivation was emitted for (one-to-one).
inputs: Vec<DerivationRef>Inputs the build needs (resolved at the renderer’s layer).
build: BuildScriptOrdered build steps the build system executes.
cache_key: ContentHashCanonical hash for cache-backend lookup. Computed by the renderer over the derivation’s content-addressed inputs + build script — so a cache backend can answer “has this already been built?” without consulting the source.
Trait Implementations§
Source§impl Clone for Derivation
impl Clone for Derivation
Source§fn clone(&self) -> Derivation
fn clone(&self) -> Derivation
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 Derivation
impl Debug for Derivation
Source§impl<'de> Deserialize<'de> for Derivation
impl<'de> Deserialize<'de> for Derivation
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
impl Eq for Derivation
Source§impl PartialEq for Derivation
impl PartialEq for Derivation
Source§fn eq(&self, other: &Derivation) -> bool
fn eq(&self, other: &Derivation) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for Derivation
impl Serialize for Derivation
impl StructuralPartialEq for Derivation
Auto Trait Implementations§
impl Freeze for Derivation
impl RefUnwindSafe for Derivation
impl Send for Derivation
impl Sync for Derivation
impl Unpin for Derivation
impl UnsafeUnpin for Derivation
impl UnwindSafe for Derivation
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> 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
Compare self to
key and return true if they are equal.