pub struct BlockRange {
pub start: Word,
pub end: Word,
}
Expand description
A range in blocks, used for the list-blocks
and list-contracts
endpoints.
The range is non-inclusive of the end
, i.e. it is equivalent to start..end
.
Fields§
§start: Word
Start of the range.
end: Word
The end of the range (exclusive).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for BlockRange
impl<'de> Deserialize<'de> for BlockRange
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 BlockRange
impl RefUnwindSafe for BlockRange
impl Send for BlockRange
impl Sync for BlockRange
impl Unpin for BlockRange
impl UnwindSafe for BlockRange
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