pub struct BlockQuery {
pub minor: Option<u64>,
pub major: Option<u64>,
pub minor_range: Option<RangeOptions>,
pub major_range: Option<RangeOptions>,
pub entry_range: Option<RangeOptions>,
pub omit_empty: Option<bool>,
}Expand description
Block query - query block information
Fields§
§minor: Option<u64>Query by minor block index
major: Option<u64>Query by major block index
minor_range: Option<RangeOptions>Range of minor blocks
major_range: Option<RangeOptions>Range of major blocks
entry_range: Option<RangeOptions>Range of entries within a block
omit_empty: Option<bool>Omit empty (unrecorded) blocks
Implementations§
Trait Implementations§
Source§impl Clone for BlockQuery
impl Clone for BlockQuery
Source§fn clone(&self) -> BlockQuery
fn clone(&self) -> BlockQuery
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 BlockQuery
impl Debug for BlockQuery
Source§impl Default for BlockQuery
impl Default for BlockQuery
Source§fn default() -> BlockQuery
fn default() -> BlockQuery
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BlockQuery
impl<'de> Deserialize<'de> for BlockQuery
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 BlockQuery
impl PartialEq for BlockQuery
Source§impl Serialize for BlockQuery
impl Serialize for BlockQuery
impl StructuralPartialEq for BlockQuery
Auto Trait Implementations§
impl Freeze for BlockQuery
impl RefUnwindSafe for BlockQuery
impl Send for BlockQuery
impl Sync for BlockQuery
impl Unpin for BlockQuery
impl UnsafeUnpin for BlockQuery
impl UnwindSafe for BlockQuery
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