pub struct BlockContent {Show 17 fields
pub time: i32,
pub height: Option<i32>,
pub hash: String,
pub slot: Option<i32>,
pub epoch: Option<i32>,
pub epoch_slot: Option<i32>,
pub slot_leader: String,
pub size: i32,
pub tx_count: i32,
pub output: Option<String>,
pub fees: Option<String>,
pub block_vrf: Option<String>,
pub op_cert: Option<String>,
pub op_cert_counter: Option<String>,
pub previous_block: Option<String>,
pub next_block: Option<String>,
pub confirmations: i32,
}Fields§
§time: i32Block creation time in UNIX time
height: Option<i32>Block number
hash: StringHash of the block
slot: Option<i32>Slot number
epoch: Option<i32>Epoch number
epoch_slot: Option<i32>Slot within the epoch
slot_leader: StringBech32 ID of the slot leader or specific block description in case there is no slot leader
size: i32Block size in Bytes
tx_count: i32Number of transactions in the block
output: Option<String>Total output within the block in Lovelaces
fees: Option<String>Total fees within the block in Lovelaces
block_vrf: Option<String>VRF key of the block
op_cert: Option<String>The hash of the operational certificate of the block producer
op_cert_counter: Option<String>The value of the counter used to produce the operational certificate
previous_block: Option<String>Hash of the previous block
next_block: Option<String>Hash of the next block
confirmations: i32Number of block confirmations
Implementations§
Source§impl BlockContent
impl BlockContent
pub fn new( time: i32, height: Option<i32>, hash: String, slot: Option<i32>, epoch: Option<i32>, epoch_slot: Option<i32>, slot_leader: String, size: i32, tx_count: i32, output: Option<String>, fees: Option<String>, block_vrf: Option<String>, op_cert: Option<String>, op_cert_counter: Option<String>, previous_block: Option<String>, next_block: Option<String>, confirmations: i32, ) -> BlockContent
Trait Implementations§
Source§impl Clone for BlockContent
impl Clone for BlockContent
Source§fn clone(&self) -> BlockContent
fn clone(&self) -> BlockContent
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 BlockContent
impl Debug for BlockContent
Source§impl Default for BlockContent
impl Default for BlockContent
Source§fn default() -> BlockContent
fn default() -> BlockContent
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BlockContent
impl<'de> Deserialize<'de> for BlockContent
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 BlockContent
impl PartialEq for BlockContent
Source§impl Serialize for BlockContent
impl Serialize for BlockContent
impl StructuralPartialEq for BlockContent
Auto Trait Implementations§
impl Freeze for BlockContent
impl RefUnwindSafe for BlockContent
impl Send for BlockContent
impl Sync for BlockContent
impl Unpin for BlockContent
impl UnwindSafe for BlockContent
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