Struct buildchain::Manifest
[−]
[src]
pub struct Manifest { pub time: u64, pub files: BTreeMap<String, String>, }
A manifest of build artifacts
Fields
time: u64
The timestamp of the source control revision
files: BTreeMap<String, String>
A dictionary of filenames and their hashes
Methods
impl Manifest
[src]
pub fn new<P: AsRef<Path>>(time: u64, path: P) -> Result<Manifest>
[src]
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
Trait Implementations
impl Clone for Manifest
[src]
fn clone(&self) -> Manifest
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for Manifest
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more