pub struct ChainStatisticResponse {
pub code: Option<i32>,
pub msg: Option<String>,
pub data_list: Vec<ChainStatisticData>,
pub underlying_iv: Option<i64>,
pub underlying_hv: Option<i64>,
}Fields§
§code: Option<i32>§msg: Option<String>§data_list: Vec<ChainStatisticData>§underlying_iv: Option<i64>§underlying_hv: Option<i64>Implementations§
Source§impl ChainStatisticResponse
impl ChainStatisticResponse
Sourcepub fn underlying_iv(&self) -> i64
pub fn underlying_iv(&self) -> i64
Returns the value of underlying_iv, or the default value if underlying_iv is unset.
Sourcepub fn underlying_hv(&self) -> i64
pub fn underlying_hv(&self) -> i64
Returns the value of underlying_hv, or the default value if underlying_hv is unset.
Trait Implementations§
Source§impl Clone for ChainStatisticResponse
impl Clone for ChainStatisticResponse
Source§fn clone(&self) -> ChainStatisticResponse
fn clone(&self) -> ChainStatisticResponse
Returns a duplicate 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 ChainStatisticResponse
impl Debug for ChainStatisticResponse
Source§impl Default for ChainStatisticResponse
impl Default for ChainStatisticResponse
Source§impl Message for ChainStatisticResponse
impl Message for ChainStatisticResponse
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for ChainStatisticResponse
impl PartialEq for ChainStatisticResponse
impl StructuralPartialEq for ChainStatisticResponse
Auto Trait Implementations§
impl Freeze for ChainStatisticResponse
impl RefUnwindSafe for ChainStatisticResponse
impl Send for ChainStatisticResponse
impl Sync for ChainStatisticResponse
impl Unpin for ChainStatisticResponse
impl UnsafeUnpin for ChainStatisticResponse
impl UnwindSafe for ChainStatisticResponse
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