pub struct GetBlockHeadersRequest {
pub start_height: u32,
pub end_height: Option<u32>,
pub network: BitcoinNetwork,
}
Expand description
Argument type of bitcoin_get_block_headers
.
Fields§
§start_height: u32
The starting block height for the request.
end_height: Option<u32>
The ending block height for the request, or None
for the current tip.
network: BitcoinNetwork
See BitcoinNetwork
.
Trait Implementations§
source§impl CandidType for GetBlockHeadersRequest
impl CandidType for GetBlockHeadersRequest
source§impl Clone for GetBlockHeadersRequest
impl Clone for GetBlockHeadersRequest
source§fn clone(&self) -> GetBlockHeadersRequest
fn clone(&self) -> GetBlockHeadersRequest
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 GetBlockHeadersRequest
impl Debug for GetBlockHeadersRequest
source§impl Default for GetBlockHeadersRequest
impl Default for GetBlockHeadersRequest
source§fn default() -> GetBlockHeadersRequest
fn default() -> GetBlockHeadersRequest
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for GetBlockHeadersRequest
impl<'de> Deserialize<'de> for GetBlockHeadersRequest
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 Hash for GetBlockHeadersRequest
impl Hash for GetBlockHeadersRequest
source§impl Ord for GetBlockHeadersRequest
impl Ord for GetBlockHeadersRequest
source§fn cmp(&self, other: &GetBlockHeadersRequest) -> Ordering
fn cmp(&self, other: &GetBlockHeadersRequest) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for GetBlockHeadersRequest
impl PartialEq for GetBlockHeadersRequest
source§impl PartialOrd for GetBlockHeadersRequest
impl PartialOrd for GetBlockHeadersRequest
source§impl Serialize for GetBlockHeadersRequest
impl Serialize for GetBlockHeadersRequest
impl Copy for GetBlockHeadersRequest
impl Eq for GetBlockHeadersRequest
impl StructuralPartialEq for GetBlockHeadersRequest
Auto Trait Implementations§
impl Freeze for GetBlockHeadersRequest
impl RefUnwindSafe for GetBlockHeadersRequest
impl Send for GetBlockHeadersRequest
impl Sync for GetBlockHeadersRequest
impl Unpin for GetBlockHeadersRequest
impl UnwindSafe for GetBlockHeadersRequest
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)