pub struct HistoryEntry {
pub ref_state_id: ObjectId,
pub block_id: ObjectId,
pub update_seq: u64,
pub previous_ref_state_id: Option<ObjectId>,
pub block_kind: BlockKind,
pub parent_count: usize,
pub patch_count: usize,
pub required_attestation_count: usize,
pub rollback_patch_count: usize,
pub is_rollback_block: bool,
}Expand description
One published RefState and its target Block summary.
Fields§
§ref_state_id: ObjectIdRefState object ID for this publication.
block_id: ObjectIdTarget Block object ID.
update_seq: u64Monotonic ref update sequence.
previous_ref_state_id: Option<ObjectId>Previous RefState object ID, if any.
block_kind: BlockKindBlock kind.
parent_count: usizeNumber of parent blocks referenced by the target Block.
patch_count: usizeNumber of patches referenced by the target Block.
required_attestation_count: usizeNumber of required attestations attached to this RefState.
rollback_patch_count: usizeNumber of rollback-marked Patch objects in the target Block.
is_rollback_block: boolWhether this entry’s target Block contains at least one rollback-marked Patch.
Trait Implementations§
Source§impl Clone for HistoryEntry
impl Clone for HistoryEntry
Source§fn clone(&self) -> HistoryEntry
fn clone(&self) -> HistoryEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 HistoryEntry
impl Debug for HistoryEntry
impl Eq for HistoryEntry
Source§impl PartialEq for HistoryEntry
impl PartialEq for HistoryEntry
impl StructuralPartialEq for HistoryEntry
Auto Trait Implementations§
impl Freeze for HistoryEntry
impl RefUnwindSafe for HistoryEntry
impl Send for HistoryEntry
impl Sync for HistoryEntry
impl Unpin for HistoryEntry
impl UnsafeUnpin for HistoryEntry
impl UnwindSafe for HistoryEntry
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