pub struct Provenance {
pub creator: String,
pub timestamp: String,
pub source: Option<String>,
}Expand description
Collects provenance information to be stored as HDF5 attributes.
Fields§
§creator: String§timestamp: String§source: Option<String>Implementations§
Source§impl Provenance
impl Provenance
Sourcepub fn build_attrs(&self, raw_data: &[u8]) -> Vec<AttributeMessage>
pub fn build_attrs(&self, raw_data: &[u8]) -> Vec<AttributeMessage>
Build provenance attribute messages for the given raw dataset bytes.
Returns a Vec<AttributeMessage> containing:
_provenance_sha256— hex digest ofraw_data_provenance_creator— the creator string_provenance_timestamp— the timestamp string_provenance_source— (optional) source description
Auto Trait Implementations§
impl Freeze for Provenance
impl RefUnwindSafe for Provenance
impl Send for Provenance
impl Sync for Provenance
impl Unpin for Provenance
impl UnsafeUnpin for Provenance
impl UnwindSafe for Provenance
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