pub struct KernelCheckpointBody {
pub schema: String,
pub checkpoint_seq: u64,
pub batch_start_seq: u64,
pub batch_end_seq: u64,
pub tree_size: usize,
pub merkle_root: Hash,
pub issued_at: u64,
pub kernel_key: PublicKey,
pub previous_checkpoint_sha256: Option<String>,
}Expand description
The signed body of a kernel checkpoint statement.
Fields§
§schema: StringSchema identifier for new checkpoint issuance.
checkpoint_seq: u64Monotonic checkpoint counter.
batch_start_seq: u64First receipt seq in this batch.
batch_end_seq: u64Last receipt seq in this batch.
tree_size: usizeNumber of leaves in the Merkle tree.
merkle_root: HashRoot from MerkleTree::from_leaves.
issued_at: u64Unix timestamp (seconds) when the checkpoint was issued.
kernel_key: PublicKeyThe kernel’s signing key (public).
previous_checkpoint_sha256: Option<String>Hash of the immediately preceding checkpoint body when this checkpoint extends a prior batch.
Trait Implementations§
Source§impl Clone for KernelCheckpointBody
impl Clone for KernelCheckpointBody
Source§fn clone(&self) -> KernelCheckpointBody
fn clone(&self) -> KernelCheckpointBody
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 KernelCheckpointBody
impl Debug for KernelCheckpointBody
Source§impl<'de> Deserialize<'de> for KernelCheckpointBody
impl<'de> Deserialize<'de> for KernelCheckpointBody
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
Source§impl PartialEq for KernelCheckpointBody
impl PartialEq for KernelCheckpointBody
Source§impl Serialize for KernelCheckpointBody
impl Serialize for KernelCheckpointBody
impl Eq for KernelCheckpointBody
impl StructuralPartialEq for KernelCheckpointBody
Auto Trait Implementations§
impl Freeze for KernelCheckpointBody
impl RefUnwindSafe for KernelCheckpointBody
impl Send for KernelCheckpointBody
impl Sync for KernelCheckpointBody
impl Unpin for KernelCheckpointBody
impl UnsafeUnpin for KernelCheckpointBody
impl UnwindSafe for KernelCheckpointBody
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.