pub struct Note {
pub format: NoteFormat,
pub commit: String,
pub head: AuditHead,
pub events: Vec<EventHash>,
pub digest: String,
pub files: Vec<FileRecord>,
}Expand description
One commit’s provenance record.
Fields§
§format: NoteFormat§commit: StringThe commit, as a full hash.
head: AuditHeadThe log’s head when the note was written.
events: Vec<EventHash>Every event Note::files cites, by id.
digest: StringThe CLI’s SHA-256 of Note::digest_input, lowercase hex.
files: Vec<FileRecord>The files agent sessions wrote; empty when the log has none.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Note
impl<'de> Deserialize<'de> for Note
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
impl Eq for Note
impl StructuralPartialEq for Note
Auto Trait Implementations§
impl Forget for Note
impl Freeze for Note
impl Move for Note
impl RefUnwindSafe for Note
impl Send for Note
impl Sync for Note
impl Unpin for Note
impl UnsafeUnpin for Note
impl UnwindSafe for Note
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