pub struct BlockPraos {
pub block_type: String,
pub era: String,
pub id: DigestBlake2b256,
pub ancestor: DigestBlake2b256,
pub slot: Slot,
pub height: BlockHeight,
pub size: BlockSize,
pub protocol: ProtocolVersionPraos,
pub issuer: BlockIssuerPraos,
pub transactions: Vec<Transaction>,
}Expand description
Praos block - Shelley era and later.
Fields§
§block_type: StringBlock type identifier.
era: StringEra (shelley, allegra, mary, alonzo, babbage, conway).
id: DigestBlake2b256Block ID (hash).
ancestor: DigestBlake2b256Ancestor block ID.
slot: SlotSlot number.
height: BlockHeightBlock height.
size: BlockSizeBlock size in bytes.
protocol: ProtocolVersionPraosProtocol version.
issuer: BlockIssuerPraosBlock issuer information.
transactions: Vec<Transaction>Transactions in the block.
Trait Implementations§
Source§impl Clone for BlockPraos
impl Clone for BlockPraos
Source§impl Debug for BlockPraos
impl Debug for BlockPraos
Source§impl<'de> Deserialize<'de> for BlockPraos
impl<'de> Deserialize<'de> for BlockPraos
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 BlockPraos
impl PartialEq for BlockPraos
Source§impl Serialize for BlockPraos
impl Serialize for BlockPraos
impl StructuralPartialEq for BlockPraos
Auto Trait Implementations§
impl Freeze for BlockPraos
impl RefUnwindSafe for BlockPraos
impl Send for BlockPraos
impl Sync for BlockPraos
impl Unpin for BlockPraos
impl UnsafeUnpin for BlockPraos
impl UnwindSafe for BlockPraos
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