pub enum DerivedPath {
Opaque(StorePath<String>),
Built {
drv_path: StorePath<String>,
outputs: OutputSpec,
},
}Expand description
A deriving path.
Deriving paths are a way to refer to store objects that may or may not yet be realised. There are two forms: - opaque: just a store path. - built: a pair of a store path to a store derivation and an output name.
See: https://nix.dev/manual/nix/latest/store/derivation/#deriving-path
Variants§
Implementations§
Source§impl DerivedPath
impl DerivedPath
pub fn into_legacy_format(self) -> LegacyDerivedPath
pub fn as_legacy_format(&self) -> &LegacyDerivedPath
Trait Implementations§
Source§impl Clone for DerivedPath
impl Clone for DerivedPath
Source§fn clone(&self) -> DerivedPath
fn clone(&self) -> DerivedPath
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 DerivedPath
impl Debug for DerivedPath
Source§impl Display for DerivedPath
impl Display for DerivedPath
Source§impl<'a> From<&'a DerivedPath> for &'a LegacyDerivedPath
impl<'a> From<&'a DerivedPath> for &'a LegacyDerivedPath
Source§fn from(value: &'a DerivedPath) -> Self
fn from(value: &'a DerivedPath) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&'a LegacyDerivedPath> for &'a DerivedPath
impl<'a> From<&'a LegacyDerivedPath> for &'a DerivedPath
Source§fn from(value: &'a LegacyDerivedPath) -> Self
fn from(value: &'a LegacyDerivedPath) -> Self
Converts to this type from the input type.
Source§impl From<DerivedPath> for LegacyDerivedPath
impl From<DerivedPath> for LegacyDerivedPath
Source§fn from(value: DerivedPath) -> Self
fn from(value: DerivedPath) -> Self
Converts to this type from the input type.
Source§impl From<LegacyDerivedPath> for DerivedPath
impl From<LegacyDerivedPath> for DerivedPath
Source§fn from(value: LegacyDerivedPath) -> Self
fn from(value: LegacyDerivedPath) -> Self
Converts to this type from the input type.
Source§impl FromStr for DerivedPath
impl FromStr for DerivedPath
Source§impl Hash for DerivedPath
impl Hash for DerivedPath
Source§impl NixSerialize for DerivedPath
Available on crate feature daemon only.
impl NixSerialize for DerivedPath
Available on crate feature
daemon only.Source§impl PartialEq for DerivedPath
impl PartialEq for DerivedPath
Source§fn eq(&self, other: &DerivedPath) -> bool
fn eq(&self, other: &DerivedPath) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for DerivedPath
impl StructuralPartialEq for DerivedPath
Auto Trait Implementations§
impl Freeze for DerivedPath
impl RefUnwindSafe for DerivedPath
impl Send for DerivedPath
impl Sync for DerivedPath
impl Unpin for DerivedPath
impl UnsafeUnpin for DerivedPath
impl UnwindSafe for DerivedPath
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.