pub struct BlockDetails<H = Header> {
pub block: OtsSlimBlock<H>,
pub issuance: InternalIssuance,
pub total_fees: U256,
}
Expand description
Custom struct for otterscan getBlockDetails
RPC response
Fields§
§block: OtsSlimBlock<H>
The block information with transaction count.
issuance: InternalIssuance
The issuance information for the block.
total_fees: U256
The total fees for the block.
Implementations§
Source§impl<H> BlockDetails<H>
impl<H> BlockDetails<H>
Sourcepub fn new<T>(
block: Block<T, H>,
issuance: InternalIssuance,
total_fees: U256,
) -> Self
pub fn new<T>( block: Block<T, H>, issuance: InternalIssuance, total_fees: U256, ) -> Self
Create a new BlockDetails
struct.
Trait Implementations§
Source§impl<H: Clone> Clone for BlockDetails<H>
impl<H: Clone> Clone for BlockDetails<H>
Source§fn clone(&self) -> BlockDetails<H>
fn clone(&self) -> BlockDetails<H>
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<H: Debug> Debug for BlockDetails<H>
impl<H: Debug> Debug for BlockDetails<H>
Source§impl<'de, H> Deserialize<'de> for BlockDetails<H>where
H: Deserialize<'de>,
impl<'de, H> Deserialize<'de> for BlockDetails<H>where
H: Deserialize<'de>,
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<T, H> From<Block<T, H>> for BlockDetails<H>
impl<T, H> From<Block<T, H>> for BlockDetails<H>
Source§impl<H: PartialEq> PartialEq for BlockDetails<H>
impl<H: PartialEq> PartialEq for BlockDetails<H>
Source§impl<H> Serialize for BlockDetails<H>where
H: Serialize,
impl<H> Serialize for BlockDetails<H>where
H: Serialize,
impl<H: Eq> Eq for BlockDetails<H>
impl<H> StructuralPartialEq for BlockDetails<H>
Auto Trait Implementations§
impl<H> Freeze for BlockDetails<H>where
H: Freeze,
impl<H> RefUnwindSafe for BlockDetails<H>where
H: RefUnwindSafe,
impl<H> Send for BlockDetails<H>where
H: Send,
impl<H> Sync for BlockDetails<H>where
H: Sync,
impl<H> Unpin for BlockDetails<H>where
H: Unpin,
impl<H> UnwindSafe for BlockDetails<H>where
H: UnwindSafe,
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
)Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more