Struct buildchain::Manifest
[−]
[src]
pub struct Manifest { pub time: u64, pub files: BTreeMap<String, Sha384>, }
A manifest of build artifacts
Fields
time: u64
The timestamp of the source control revision
files: BTreeMap<String, Sha384>
A dictionary of filenames and their hashes
Methods
impl Manifest
[src]
fn new<P: AsRef<Path>>(time: u64, path: P) -> Result<Manifest>
Create a new Manifest by reading the provided build directory
Arguments
time
- the timestamp of the source control revision that was builtpath
- the directory containing the build artifacts
Return
The Manifest of the provided build data
Errors
Errors that are encountered while reading will be returned
Example
use buildchain::Manifest; let manifest = Manifest::new(1500000000, "tests/res/artifacts").unwrap();
Trait Implementations
impl Clone for Manifest
[src]
fn clone(&self) -> Manifest
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more