pub struct SourceHash {
pub store_path: String,
pub nar_hash_sri: String,
pub nar_bytes: Vec<u8>,
}Expand description
Result of serializing + hashing a source tree.
Fields§
§store_path: StringStore path the source would be materialized under, e.g.
/nix/store/p8zn7x0860a3h5xf1dg01a3sfxs3s46i-source.
nar_hash_sri: StringSRI-format NAR hash, e.g.
sha256-fpA5m7tc6t4Oe6Uku9gKvul7CrR7urWE1K+DA0nhLPI=.
This is what CppNix exposes as the narHash attribute on
flake results.
nar_bytes: Vec<u8>Raw NAR bytes. Callers that want to cache or upload the archive (binary cache push, store materialization) use this directly — re-serializing would be both wasteful and risks nondeterminism.
Trait Implementations§
Source§impl Clone for SourceHash
impl Clone for SourceHash
Source§fn clone(&self) -> SourceHash
fn clone(&self) -> SourceHash
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 moreAuto Trait Implementations§
impl Freeze for SourceHash
impl RefUnwindSafe for SourceHash
impl Send for SourceHash
impl Sync for SourceHash
impl Unpin for SourceHash
impl UnsafeUnpin for SourceHash
impl UnwindSafe for SourceHash
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