Struct diem_client::State
source · pub struct State {
pub chain_id: u8,
pub version: u64,
pub timestamp_usecs: u64,
}
Fields§
§chain_id: u8
§version: u64
§timestamp_usecs: u64
Implementations§
source§impl State
impl State
pub fn from_response(resp: &JsonRpcResponse) -> Self
Trait Implementations§
source§impl Ord for State
impl Ord for State
source§impl PartialEq<State> for State
impl PartialEq<State> for State
source§impl PartialOrd<State> for State
impl PartialOrd<State> for State
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for State
impl StructuralEq for State
impl StructuralPartialEq for State
Auto Trait Implementations§
impl RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnwindSafe for State
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.