pub struct Ledger { /* private fields */ }Expand description
The ledger under construction: items appended in observation order, each id unique.
Implementations§
Source§impl Ledger
impl Ledger
Sourcepub fn observe(
&mut self,
id: impl Into<String>,
kind: EvidenceKind,
producer: impl Into<String>,
observed_at: &str,
sha256: Option<Digest>,
method: impl Into<String>,
) -> String
pub fn observe( &mut self, id: impl Into<String>, kind: EvidenceKind, producer: impl Into<String>, observed_at: &str, sha256: Option<Digest>, method: impl Into<String>, ) -> String
Record one observation and answer its id, for the field that cites it.
Sourcepub fn into_items(self) -> Vec<EvidenceItem>
pub fn into_items(self) -> Vec<EvidenceItem>
The items, in observation order.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Ledger
impl RefUnwindSafe for Ledger
impl Send for Ledger
impl Sync for Ledger
impl Unpin for Ledger
impl UnsafeUnpin for Ledger
impl UnwindSafe for Ledger
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