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 JsonSchema for BlockEconomicState
impl JsonSchema for BlockEconomicState
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moreSource§impl PartialEq for BlockEconomicState
impl PartialEq for BlockEconomicState
Source§impl Serialize for BlockEconomicState
impl Serialize for BlockEconomicState
impl Eq for BlockEconomicState
impl StructuralPartialEq for BlockEconomicState
Auto Trait Implementations§
impl Freeze for BlockEconomicState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)