pub struct ChainMainMin {
pub first_height: u64,
pub first_prev_id: Hex<32>,
pub ids: Vec<Hex<32>>,
}
Expand description
ZMQ json-minimal-chain_main
subscriber messages contain a single
ChainMainMin
JSON object. Unlike the full version, only the topmost
block is sent in the case of a re-org.
Fields§
§first_height: u64
height of the block
first_prev_id: Hex<32>
block id of the previous block
ids: Vec<Hex<32>>
block ID of the current block is the 0th entry; additional block IDs will only be included if this is the topmost block of a re-org.
Trait Implementations§
Source§impl Clone for ChainMainMin
impl Clone for ChainMainMin
Source§fn clone(&self) -> ChainMainMin
fn clone(&self) -> ChainMainMin
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 ChainMainMin
impl Debug for ChainMainMin
Source§impl Default for ChainMainMin
impl Default for ChainMainMin
Source§fn default() -> ChainMainMin
fn default() -> ChainMainMin
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ChainMainMin
impl<'de> Deserialize<'de> for ChainMainMin
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
Auto Trait Implementations§
impl Freeze for ChainMainMin
impl RefUnwindSafe for ChainMainMin
impl Send for ChainMainMin
impl Sync for ChainMainMin
impl Unpin for ChainMainMin
impl UnwindSafe for ChainMainMin
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 64 bytes