pub struct Proposal {Show 15 fields
pub prev_hash: H256,
pub proposer: H160,
pub prev_state_root: H256,
pub transactions_root: H256,
pub signed_txs_hash: H256,
pub timestamp: u64,
pub number: u64,
pub gas_limit: U256,
pub extra_data: Bytes,
pub mixed_hash: Option<H256>,
pub base_fee_per_gas: U256,
pub proof: Proof,
pub chain_id: u64,
pub call_system_script_count: u32,
pub tx_hashes: Vec<H256>,
}Available on crate feature
proof only.Fields§
§prev_hash: H256§proposer: H160§prev_state_root: H256§transactions_root: H256§signed_txs_hash: H256§timestamp: u64§number: u64§gas_limit: U256§extra_data: Bytes§mixed_hash: Option<H256>§base_fee_per_gas: U256§proof: Proof§chain_id: u64§call_system_script_count: u32§tx_hashes: Vec<H256>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Proposal
impl<'de> Deserialize<'de> for Proposal
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
impl Eq for Proposal
impl StructuralPartialEq for Proposal
Auto Trait Implementations§
impl !Freeze for Proposal
impl RefUnwindSafe for Proposal
impl Send for Proposal
impl Sync for Proposal
impl Unpin for Proposal
impl UnwindSafe for Proposal
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