pub struct WriteAuthorship {
pub evidence: HeaderEvidence,
pub hashers: Vec<Option<AuthorshipHasher>>,
}Expand description
A write’s signed header and part roots, and the hashers that check each opened part against its root (D9, D11). The database checks the roots; sync checks the header signature with the rest of the object.
Fields§
§evidence: HeaderEvidenceThe cleartext prefix, sealed header, roots and header signature.
hashers: Vec<Option<AuthorshipHasher>>Each part’s keyed leaf hasher, in header order, for the opened parts.
Trait Implementations§
Source§impl Clone for WriteAuthorship
impl Clone for WriteAuthorship
Source§fn clone(&self) -> WriteAuthorship
fn clone(&self) -> WriteAuthorship
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 moreAuto Trait Implementations§
impl Freeze for WriteAuthorship
impl RefUnwindSafe for WriteAuthorship
impl Send for WriteAuthorship
impl Sync for WriteAuthorship
impl Unpin for WriteAuthorship
impl UnsafeUnpin for WriteAuthorship
impl UnwindSafe for WriteAuthorship
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