#[non_exhaustive]pub struct BlocksRange {
pub range: Range<Height>,
pub blocks: Vec<BlockInfo>,
}Expand description
Information on blocks coupled with the corresponding range in the blockchain.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.range: Range<Height>Exclusive range of blocks.
blocks: Vec<BlockInfo>Blocks in the range.
Trait Implementations§
Source§impl Debug for BlocksRange
impl Debug for BlocksRange
Source§impl<'de> Deserialize<'de> for BlocksRange
impl<'de> Deserialize<'de> for BlocksRange
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 BlocksRange
impl PartialEq for BlocksRange
Source§impl Serialize for BlocksRange
impl Serialize for BlocksRange
impl StructuralPartialEq for BlocksRange
Auto Trait Implementations§
impl Freeze for BlocksRange
impl RefUnwindSafe for BlocksRange
impl Send for BlocksRange
impl Sync for BlocksRange
impl Unpin for BlocksRange
impl UnwindSafe for BlocksRange
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