pub struct BlockChainStats { /* private fields */ }Implementations§
Source§impl BlockChainStats
impl BlockChainStats
pub fn new( blockchain_name: BlockChainNames, id: String, short_description: String, time_offset: u32, total_active_coins: f64, total_coin_issuance: f64, block_height: u32, active_addresses: u32, last_updated: u32, stat_type: BlockChainStatType, block_range_start: u32, block_range_end: u32, date_range_start: u32, date_range_end: u32, ) -> Self
pub fn block_range_start(&self) -> u32
pub fn block_range_end(&self) -> u32
pub fn date_range_start(&self) -> u32
pub fn date_range_end(&self) -> u32
pub fn id(&self) -> String
pub fn time_offset(&self) -> u32
pub fn last_updated(&self) -> u32
pub fn active_address_total(&self) -> u32
pub fn block_height(&self) -> u32
pub fn total_coin_issuance(&self) -> f64
pub fn blockchain_name(&self) -> String
pub fn total_coin_in_circulation(&self) -> f64
pub fn short_description(&self) -> String
pub fn stat_type(&self) -> BlockChainStatType
pub fn update_last_updated(&mut self, time: u32)
pub fn update_date_range(&mut self, start_time: u32, end_time: u32) -> &mut Self
pub fn update_block_range( &mut self, start_block: u32, end_block: u32, ) -> &mut Self
pub fn update_active_address_total(&mut self, total: u32) -> &mut Self
pub fn update_block_height(&mut self, height: u32) -> &mut Self
pub fn update_total_coin_issuance_by_block(&mut self, block_height: u32)
pub fn update_total_coin_in_circulation(&mut self, amount: f64)
Trait Implementations§
Source§impl Clone for BlockChainStats
impl Clone for BlockChainStats
Source§fn clone(&self) -> BlockChainStats
fn clone(&self) -> BlockChainStats
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 BlockChainStats
impl Debug for BlockChainStats
Source§impl<'de> Deserialize<'de> for BlockChainStats
impl<'de> Deserialize<'de> for BlockChainStats
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
Auto Trait Implementations§
impl Freeze for BlockChainStats
impl RefUnwindSafe for BlockChainStats
impl Send for BlockChainStats
impl Sync for BlockChainStats
impl Unpin for BlockChainStats
impl UnwindSafe for BlockChainStats
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