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
sourceimpl Clone for BlockEconomicState
impl Clone for BlockEconomicState
sourcefn clone(&self) -> BlockEconomicState
fn clone(&self) -> BlockEconomicState
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for BlockEconomicState
impl Debug for BlockEconomicState
sourceimpl Default for BlockEconomicState
impl Default for BlockEconomicState
sourcefn default() -> BlockEconomicState
fn default() -> BlockEconomicState
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for BlockEconomicState
impl<'de> Deserialize<'de> for BlockEconomicState
sourcefn 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
sourceimpl From<BlockEconomicState> for BlockEconomicState
impl From<BlockEconomicState> for BlockEconomicState
sourcefn from(core: BlockEconomicState) -> Self
fn from(core: BlockEconomicState) -> Self
Converts to this type from the input type.
sourceimpl From<BlockEconomicState> for BlockEconomicState
impl From<BlockEconomicState> for BlockEconomicState
sourcefn from(json: BlockEconomicState) -> Self
fn from(json: BlockEconomicState) -> Self
Converts to this type from the input type.
sourceimpl Hash for BlockEconomicState
impl Hash for BlockEconomicState
sourceimpl PartialEq<BlockEconomicState> for BlockEconomicState
impl PartialEq<BlockEconomicState> for BlockEconomicState
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &BlockEconomicState) -> bool
fn ne(&self, other: &BlockEconomicState) -> bool
This method tests for !=
.
sourceimpl Serialize for BlockEconomicState
impl Serialize for BlockEconomicState
impl Eq for BlockEconomicState
impl StructuralEq 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more