Struct nix_compat::path_info::ExportedPathInfo
source · pub struct ExportedPathInfo<'a> {
pub closure_size: u64,
pub nar_sha256: [u8; 32],
pub nar_size: u64,
pub path: StorePathRef<'a>,
pub references: BTreeSet<StorePathRef<'a>>,
}
Expand description
Represents information about a Store Path that Nix provides inside the build
if the exportReferencesGraph feature is used.
This is not to be confused with the format Nix uses in its nix path-info
command.
It includes some more fields, like registrationTime
, signatures
and ultimate
,
does not include the closureSize
and encodes narHash
as SRI.
Fields§
§closure_size: u64
§nar_sha256: [u8; 32]
§nar_size: u64
§path: StorePathRef<'a>
§references: BTreeSet<StorePathRef<'a>>
The list of other Store Paths this Store Path refers to. StorePathRef does Ord by the nixbase32-encoded string repr, so this is correct.
Trait Implementations§
source§impl<'a> Clone for ExportedPathInfo<'a>
impl<'a> Clone for ExportedPathInfo<'a>
source§fn clone(&self) -> ExportedPathInfo<'a>
fn clone(&self) -> ExportedPathInfo<'a>
Returns a copy 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<'a> Debug for ExportedPathInfo<'a>
impl<'a> Debug for ExportedPathInfo<'a>
source§impl<'de: 'a, 'a> Deserialize<'de> for ExportedPathInfo<'a>
impl<'de: 'a, 'a> Deserialize<'de> for ExportedPathInfo<'a>
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
source§impl<'a> Hash for ExportedPathInfo<'a>
impl<'a> Hash for ExportedPathInfo<'a>
source§impl Ord for ExportedPathInfo<'_>
impl Ord for ExportedPathInfo<'_>
ExportedPathInfo are ordered by their path
field.
source§impl<'a> PartialEq for ExportedPathInfo<'a>
impl<'a> PartialEq for ExportedPathInfo<'a>
source§fn eq(&self, other: &ExportedPathInfo<'a>) -> bool
fn eq(&self, other: &ExportedPathInfo<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ExportedPathInfo<'_>
impl PartialOrd for ExportedPathInfo<'_>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl<'a> Serialize for ExportedPathInfo<'a>
impl<'a> Serialize for ExportedPathInfo<'a>
impl<'a> Eq for ExportedPathInfo<'a>
impl<'a> StructuralPartialEq for ExportedPathInfo<'a>
Auto Trait Implementations§
impl<'a> Freeze for ExportedPathInfo<'a>
impl<'a> RefUnwindSafe for ExportedPathInfo<'a>
impl<'a> Send for ExportedPathInfo<'a>
impl<'a> Sync for ExportedPathInfo<'a>
impl<'a> Unpin for ExportedPathInfo<'a>
impl<'a> UnwindSafe for ExportedPathInfo<'a>
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