Struct ckb_jsonrpc_types::BlockEconomicState
source · pub struct BlockEconomicState {
pub issuance: BlockIssuance,
pub miner_reward: MinerReward,
pub txs_fee: Capacity,
pub finalized_at: H256,
}
Expand description
Block Economic State.
It includes the rewards details and when it is finalized.
Fields§
§issuance: BlockIssuance
Block base rewards.
miner_reward: MinerReward
Block rewards for miners.
txs_fee: Capacity
The total fees of all transactions committed in the block.
finalized_at: H256
The block hash of the block which creates the rewards as cells in its cellbase transaction.
Trait Implementations§
source§impl Clone for BlockEconomicState
impl Clone for BlockEconomicState
source§fn clone(&self) -> BlockEconomicState
fn clone(&self) -> BlockEconomicState
Returns a copy 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 BlockEconomicState
impl Debug for BlockEconomicState
source§impl Default for BlockEconomicState
impl Default for BlockEconomicState
source§fn default() -> BlockEconomicState
fn default() -> BlockEconomicState
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for BlockEconomicState
impl<'de> Deserialize<'de> for BlockEconomicState
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 From<BlockEconomicState> for BlockEconomicState
impl From<BlockEconomicState> for BlockEconomicState
source§fn from(core: BlockEconomicState) -> Self
fn from(core: BlockEconomicState) -> Self
Converts to this type from the input type.
source§impl From<BlockEconomicState> for BlockEconomicState
impl From<BlockEconomicState> for BlockEconomicState
source§fn from(json: BlockEconomicState) -> Self
fn from(json: BlockEconomicState) -> Self
Converts to this type from the input type.
source§impl Hash for BlockEconomicState
impl Hash for BlockEconomicState
source§impl PartialEq for BlockEconomicState
impl PartialEq for BlockEconomicState
source§fn eq(&self, other: &BlockEconomicState) -> bool
fn eq(&self, other: &BlockEconomicState) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BlockEconomicState
impl Serialize for BlockEconomicState
impl Eq for BlockEconomicState
impl StructuralPartialEq for BlockEconomicState
Auto Trait Implementations§
impl RefUnwindSafe for BlockEconomicState
impl Send for BlockEconomicState
impl Sync for BlockEconomicState
impl Unpin for BlockEconomicState
impl UnwindSafe for BlockEconomicState
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