pub struct BlockBFT {
pub block_type: String,
pub era: String,
pub id: DigestBlake2b256,
pub ancestor: DigestBlake2b256,
pub slot: Slot,
pub height: BlockHeight,
pub size: BlockSize,
pub protocol: ProtocolVersionByron,
pub issuer: BlockIssuerByron,
pub transactions: Vec<Transaction>,
}Expand description
BFT block - Byron era.
Fields§
§block_type: StringBlock type identifier.
era: StringEra (always “byron” for BFT).
id: DigestBlake2b256Block ID (hash).
ancestor: DigestBlake2b256Ancestor block ID.
slot: SlotSlot number.
height: BlockHeightBlock height.
size: BlockSizeBlock size in bytes.
protocol: ProtocolVersionByronProtocol version.
issuer: BlockIssuerByronBlock issuer information.
transactions: Vec<Transaction>Transactions in the block.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for BlockBFT
impl<'de> Deserialize<'de> for BlockBFT
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
impl StructuralPartialEq for BlockBFT
Auto Trait Implementations§
impl Freeze for BlockBFT
impl RefUnwindSafe for BlockBFT
impl Send for BlockBFT
impl Sync for BlockBFT
impl Unpin for BlockBFT
impl UnsafeUnpin for BlockBFT
impl UnwindSafe for BlockBFT
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