Struct ic_web3_rs::types::EthProtocolInfo
source · pub struct EthProtocolInfo {
pub version: u32,
pub difficulty: Option<U256>,
pub head: String,
}
Expand description
eth chain version, difficulty, and head of chain which soft fork? Olympic, Frontier, Homestead, Metropolis, Serenity, etc.
Fields§
§version: u32
version
difficulty: Option<U256>
difficulty
head: String
head of chain
Trait Implementations§
source§impl Clone for EthProtocolInfo
impl Clone for EthProtocolInfo
source§fn clone(&self) -> EthProtocolInfo
fn clone(&self) -> EthProtocolInfo
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 EthProtocolInfo
impl Debug for EthProtocolInfo
source§impl<'de> Deserialize<'de> for EthProtocolInfo
impl<'de> Deserialize<'de> for EthProtocolInfo
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 EthProtocolInfo
impl PartialEq for EthProtocolInfo
source§fn eq(&self, other: &EthProtocolInfo) -> bool
fn eq(&self, other: &EthProtocolInfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for EthProtocolInfo
impl Serialize for EthProtocolInfo
impl StructuralPartialEq for EthProtocolInfo
Auto Trait Implementations§
impl RefUnwindSafe for EthProtocolInfo
impl Send for EthProtocolInfo
impl Sync for EthProtocolInfo
impl Unpin for EthProtocolInfo
impl UnwindSafe for EthProtocolInfo
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