pub struct PreacceptanceJournalRecord { /* private fields */ }Expand description
One canonical preacceptance private-state journal record.
This transitional wire is not the final promotion-journal v2 contract and
cannot carry a hardware-acceptance claim. The final wire remains undefined
until FinalEvidenceJoin exists.
Implementations§
Source§impl PreacceptanceJournalRecord
impl PreacceptanceJournalRecord
Sourcepub fn record_sha256(&self) -> &str
pub fn record_sha256(&self) -> &str
SHA-256 of the canonical record body.
Sourcepub fn canonical_line(&self) -> PromotionResult<Vec<u8>>
pub fn canonical_line(&self) -> PromotionResult<Vec<u8>>
Canonical newline-terminated bytes appended to private state.
§Errors
Returns an error only if serialization unexpectedly fails.
Trait Implementations§
Source§impl Clone for PreacceptanceJournalRecord
impl Clone for PreacceptanceJournalRecord
Source§fn clone(&self) -> PreacceptanceJournalRecord
fn clone(&self) -> PreacceptanceJournalRecord
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PreacceptanceJournalRecord
impl Debug for PreacceptanceJournalRecord
Source§impl<'de> Deserialize<'de> for PreacceptanceJournalRecord
impl<'de> Deserialize<'de> for PreacceptanceJournalRecord
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 PreacceptanceJournalRecord
impl StructuralPartialEq for PreacceptanceJournalRecord
Auto Trait Implementations§
impl Freeze for PreacceptanceJournalRecord
impl RefUnwindSafe for PreacceptanceJournalRecord
impl Send for PreacceptanceJournalRecord
impl Sync for PreacceptanceJournalRecord
impl Unpin for PreacceptanceJournalRecord
impl UnsafeUnpin for PreacceptanceJournalRecord
impl UnwindSafe for PreacceptanceJournalRecord
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