[−][src]Struct exonum_explorer::api::BlocksQuery
Blocks in range parameters.
Fields (Non-exhaustive)
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.count: usize
The number of blocks to return. Should not be greater than MAX_BLOCKS_PER_REQUEST
.
latest: Option<Height>
The maximum height of the returned blocks.
The blocks are returned in reverse order,
starting from the latest and at least up to the latest - count + 1
.
The default value is the height of the latest block in the blockchain.
earliest: Option<Height>
The minimum height of the returned blocks. The default value is Height(0)
(the genesis
block).
Note that earliest
has the least priority compared to latest
and count
;
it can only truncate the list of otherwise returned blocks if some of them have a lesser
height.
skip_empty_blocks: bool
If true, then only non-empty blocks are returned. The default value is false.
add_blocks_time: bool
If true, then the time
field in each returned block will contain the median time from the
block precommits.
add_precommits: bool
If true, then the precommits
field in each returned block will contain precommits for the
block stored by the node.
Trait Implementations
impl Clone for BlocksQuery
[src]
fn clone(&self) -> BlocksQuery
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for BlocksQuery
[src]
impl Default for BlocksQuery
[src]
fn default() -> BlocksQuery
[src]
impl<'de> Deserialize<'de> for BlocksQuery
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl PartialEq<BlocksQuery> for BlocksQuery
[src]
fn eq(&self, other: &BlocksQuery) -> bool
[src]
fn ne(&self, other: &BlocksQuery) -> bool
[src]
impl Serialize for BlocksQuery
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralPartialEq for BlocksQuery
[src]
Auto Trait Implementations
impl RefUnwindSafe for BlocksQuery
impl Send for BlocksQuery
impl Sync for BlocksQuery
impl Unpin for BlocksQuery
impl UnwindSafe for BlocksQuery
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Clear for T where
T: InitializableFromZeroed + ?Sized,
T: InitializableFromZeroed + ?Sized,
fn clear(&mut self)
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T> InitializableFromZeroed for T where
T: Default,
T: Default,
unsafe fn initialize(place: *mut T)
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,