pub struct BlockDetails {
pub block: OtsSlimBlock,
pub issuance: InternalIssuance,
pub total_fees: U256,
}
Expand description
Custom struct for otterscan getBlockDetails
RPC response
Fields§
§block: OtsSlimBlock
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 BlockDetails
impl BlockDetails
sourcepub fn new<T>(
block: Block<T>,
issuance: InternalIssuance,
total_fees: U256,
) -> Self
pub fn new<T>( block: Block<T>, issuance: InternalIssuance, total_fees: U256, ) -> Self
Create a new BlockDetails
struct.
Trait Implementations§
source§impl Clone for BlockDetails
impl Clone for BlockDetails
source§fn clone(&self) -> BlockDetails
fn clone(&self) -> BlockDetails
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 Debug for BlockDetails
impl Debug for BlockDetails
source§impl<'de> Deserialize<'de> for BlockDetails
impl<'de> Deserialize<'de> for BlockDetails
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> From<Block<T>> for BlockDetails
impl<T> From<Block<T>> for BlockDetails
source§impl PartialEq for BlockDetails
impl PartialEq for BlockDetails
source§impl Serialize for BlockDetails
impl Serialize for BlockDetails
impl Eq for BlockDetails
impl StructuralPartialEq for BlockDetails
Auto Trait Implementations§
impl !Freeze for BlockDetails
impl RefUnwindSafe for BlockDetails
impl Send for BlockDetails
impl Sync for BlockDetails
impl Unpin for BlockDetails
impl UnwindSafe for BlockDetails
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