pub struct GetBlocksArgs {
pub start: BlockIndex,
pub length: u64,
}Expand description
Arguments for the get_blocks function.
Fields§
§start: BlockIndexThe index of the first block to fetch.
length: u64Max number of blocks to fetch.
Trait Implementations§
Source§impl CandidType for GetBlocksArgs
impl CandidType for GetBlocksArgs
Source§impl Clone for GetBlocksArgs
impl Clone for GetBlocksArgs
Source§fn clone(&self) -> GetBlocksArgs
fn clone(&self) -> GetBlocksArgs
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 GetBlocksArgs
impl Debug for GetBlocksArgs
Source§impl<'de> Deserialize<'de> for GetBlocksArgs
impl<'de> Deserialize<'de> for GetBlocksArgs
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 GetBlocksArgs
impl PartialEq for GetBlocksArgs
Source§impl Serialize for GetBlocksArgs
impl Serialize for GetBlocksArgs
impl Eq for GetBlocksArgs
impl StructuralPartialEq for GetBlocksArgs
Auto Trait Implementations§
impl Freeze for GetBlocksArgs
impl RefUnwindSafe for GetBlocksArgs
impl Send for GetBlocksArgs
impl Sync for GetBlocksArgs
impl Unpin for GetBlocksArgs
impl UnwindSafe for GetBlocksArgs
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