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 deriver: Option<StorePathRef<'a>>,
pub references: BTreeSet<StorePathRef<'a>>,
pub signatures: Vec<SignatureRef<'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>
§deriver: Option<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.
signatures: Vec<SignatureRef<'a>>
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§impl PartialOrd for ExportedPathInfo<'_>
impl PartialOrd for ExportedPathInfo<'_>
source§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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)