pub trait VersionedBlockPayload {
// Required methods
fn height(&self) -> &BlockHeight;
fn consensus_header(&self) -> &ConsensusHeader<Empty>;
fn application_header(&self) -> &ApplicationHeader<Empty>;
fn registrations(&self) -> &RegistrationsPerTable;
fn transactions(&self) -> Vec<CompressedTransaction>;
fn partial_block_header(&self) -> PartialBlockHeader;
}Expand description
A compressed block payload MUST implement this trait It is used to provide a convenient interface for usage within compression
Required Methods§
fn height(&self) -> &BlockHeight
fn consensus_header(&self) -> &ConsensusHeader<Empty>
fn application_header(&self) -> &ApplicationHeader<Empty>
fn registrations(&self) -> &RegistrationsPerTable
fn transactions(&self) -> Vec<CompressedTransaction>
fn partial_block_header(&self) -> PartialBlockHeader
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".