Struct libpijul::change::Hashed [−][src]
pub struct Hashed<Hunk, Author> { pub version: u64, pub header: ChangeHeader_<Author>, pub dependencies: Vec<Hash>, pub extra_known: Vec<Hash>, pub metadata: Vec<u8>, pub changes: Vec<Hunk>, pub contents_hash: Hash, }
Fields
version: u64
Version, again (in order to hash it).
header: ChangeHeader_<Author>
Header part, containing the metadata.
dependencies: Vec<Hash>
The dependencies of this change.
extra_known: Vec<Hash>
Extra known “context” changes to recover from deleted contexts.
metadata: Vec<u8>
Some space to write application-specific data.
changes: Vec<Hunk>
The changes, without the contents.
contents_hash: Hash
Hash of the contents, so that the “contents” field is verifiable independently from the actions in this change.
Trait Implementations
impl<'de, Hunk, Author> Deserialize<'de> for Hashed<Hunk, Author> where
Hunk: Deserialize<'de>,
Author: Deserialize<'de>,
impl<'de, Hunk, Author> Deserialize<'de> for Hashed<Hunk, Author> where
Hunk: Deserialize<'de>,
Author: Deserialize<'de>,
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
Auto Trait Implementations
impl<Hunk, Author> RefUnwindSafe for Hashed<Hunk, Author> where
Author: RefUnwindSafe,
Hunk: RefUnwindSafe,
impl<Hunk, Author> UnwindSafe for Hashed<Hunk, Author> where
Author: UnwindSafe,
Hunk: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self