pub enum InputRef {
Direct(String),
Follows(Vec<String>),
}Expand description
A reference to another node in the input graph.
In the JSON encoding:
- A plain string (
"nixpkgs") means direct node reference. - An array of strings (
["nixpkgs"]) means follows — walk the path starting from the parent of the current node (resolved later).
Variants§
Direct(String)
Direct reference to a named node.
Follows(Vec<String>)
Follows path — resolve through the parent’s input chain.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for InputRef
impl<'de> Deserialize<'de> for InputRef
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 InputRef
impl StructuralPartialEq for InputRef
Auto Trait Implementations§
impl Freeze for InputRef
impl RefUnwindSafe for InputRef
impl Send for InputRef
impl Sync for InputRef
impl Unpin for InputRef
impl UnsafeUnpin for InputRef
impl UnwindSafe for InputRef
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