pub struct CheckpointInfo {
pub sequence_number: u64,
pub epoch: u64,
pub digest: [u8; 32],
pub total_transactions: u64,
pub is_certified: bool,
}Expand description
Checkpoint information with certification details.
Fields§
§sequence_number: u64The checkpoint sequence number
epoch: u64The epoch this checkpoint belongs to
digest: [u8; 32]The digest of the checkpoint
total_transactions: u64Total number of transactions in the checkpoint
is_certified: boolWhether the checkpoint is certified
Implementations§
Source§impl CheckpointInfo
impl CheckpointInfo
Sourcepub fn is_finalized(&self) -> bool
pub fn is_finalized(&self) -> bool
Returns true if this checkpoint is certified.
Trait Implementations§
Source§impl Clone for CheckpointInfo
impl Clone for CheckpointInfo
Source§fn clone(&self) -> CheckpointInfo
fn clone(&self) -> CheckpointInfo
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 CheckpointInfo
impl Debug for CheckpointInfo
Source§impl<'de> Deserialize<'de> for CheckpointInfo
impl<'de> Deserialize<'de> for CheckpointInfo
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
Auto Trait Implementations§
impl Freeze for CheckpointInfo
impl RefUnwindSafe for CheckpointInfo
impl Send for CheckpointInfo
impl Sync for CheckpointInfo
impl Unpin for CheckpointInfo
impl UnsafeUnpin for CheckpointInfo
impl UnwindSafe for CheckpointInfo
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