Struct ic_ledger_types::GetBlocksArgs
source · pub struct GetBlocksArgs {
pub start: BlockIndex,
pub length: u64,
}
Expand description
Arguments for the get_blocks
function.
Fields§
§start: BlockIndex
The index of the first block to fetch.
length: u64
Max 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 copy 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§fn eq(&self, other: &GetBlocksArgs) -> bool
fn eq(&self, other: &GetBlocksArgs) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for GetBlocksArgs
impl Serialize for GetBlocksArgs
impl Eq for GetBlocksArgs
impl StructuralPartialEq for GetBlocksArgs
Auto Trait Implementations§
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