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§impl Serialize for EthProtocolInfo
impl Serialize for EthProtocolInfo
impl StructuralPartialEq for EthProtocolInfo
Auto Trait Implementations§
impl Freeze for EthProtocolInfo
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