pub struct BlockInfo { /* private fields */ }Implementations§
Source§impl BlockInfo
impl BlockInfo
pub fn time(&self) -> u64
pub fn height(&self) -> u64
pub fn hash(&self) -> &str
pub fn slot(&self) -> u64
pub fn epoch(&self) -> u64
pub fn epoch_slot(&self) -> u64
pub fn slot_leader(&self) -> &str
pub fn size(&self) -> u64
pub fn tx_count(&self) -> u64
pub fn output(&self) -> &Option<String>
pub fn fees(&self) -> &Option<String>
pub fn block_vrf(&self) -> &str
pub fn op_cert(&self) -> &str
pub fn op_cert_counter(&self) -> &str
pub fn previous_block(&self) -> &str
pub fn next_block(&self) -> &Option<String>
pub fn confirmations(&self) -> u64
Trait Implementations§
Source§impl<'de> Deserialize<'de> for BlockInfo
impl<'de> Deserialize<'de> for BlockInfo
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 BlockInfo
impl RefUnwindSafe for BlockInfo
impl Send for BlockInfo
impl Sync for BlockInfo
impl Unpin for BlockInfo
impl UnwindSafe for BlockInfo
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