pub struct GetChainTxStats {
pub time: u32,
pub tx_count: u32,
pub window_final_block_hash: BlockHash,
pub window_block_count: u32,
pub window_tx_count: Option<u32>,
pub window_interval: Option<u32>,
pub tx_rate: Option<u32>,
}Expand description
Result of JSON-RPC method getchaintxstats.
Fields§
§time: u32The timestamp for the final block in the window in UNIX format.
tx_count: u32The total number of transactions in the chain up to that point.
window_final_block_hash: BlockHashThe hash of the final block in the window.
window_block_count: u32Size of the window in number of blocks.
window_tx_count: Option<u32>The number of transactions in the window. Only returned if “window_block_count” is > 0.
window_interval: Option<u32>The elapsed time in the window in seconds. Only returned if “window_block_count” is > 0.
tx_rate: Option<u32>The average rate of transactions per second in the window. Only returned if “window_interval” is > 0.
Trait Implementations§
Source§impl Clone for GetChainTxStats
impl Clone for GetChainTxStats
Source§fn clone(&self) -> GetChainTxStats
fn clone(&self) -> GetChainTxStats
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 GetChainTxStats
impl Debug for GetChainTxStats
Source§impl<'de> Deserialize<'de> for GetChainTxStats
impl<'de> Deserialize<'de> for GetChainTxStats
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 GetChainTxStats
impl PartialEq for GetChainTxStats
Source§impl Serialize for GetChainTxStats
impl Serialize for GetChainTxStats
impl StructuralPartialEq for GetChainTxStats
Auto Trait Implementations§
impl Freeze for GetChainTxStats
impl RefUnwindSafe for GetChainTxStats
impl Send for GetChainTxStats
impl Sync for GetChainTxStats
impl Unpin for GetChainTxStats
impl UnwindSafe for GetChainTxStats
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