pub struct TreeEntry {
pub block_id: String,
pub raw_hash_hex: String,
pub child_tree_hash_hex: Option<String>,
pub kind: String,
pub attrs: Value,
pub trivia_hash_hex: Option<String>,
}Expand description
One entry of a tree node: the six-element array of §4.1.
Fields§
§block_id: String§raw_hash_hex: Stringsha256(raw), lowercase hex.
child_tree_hash_hex: Option<String>The children’s node hash, or None for a leaf.
kind: StringThe spec/format §3 kind name.
attrs: ValueThe block’s attrs as a JSON object.
trivia_hash_hex: Option<String>The trailing trivia blob’s hash, or None when the trivia is empty.
Trait Implementations§
impl StructuralPartialEq for TreeEntry
Auto Trait Implementations§
impl Freeze for TreeEntry
impl RefUnwindSafe for TreeEntry
impl Send for TreeEntry
impl Sync for TreeEntry
impl Unpin for TreeEntry
impl UnsafeUnpin for TreeEntry
impl UnwindSafe for TreeEntry
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