pub struct GetBlockHeadersResponse {
pub tip_height: u32,
pub block_headers: Vec<Vec<u8>>,
}
Expand description
Response type of bitcoin_get_block_headers
.
Fields§
§tip_height: u32
The tip of the blockchain when this request was filled.
block_headers: Vec<Vec<u8>>
The requested block headers.
Trait Implementations§
source§impl CandidType for GetBlockHeadersResponse
impl CandidType for GetBlockHeadersResponse
source§impl Clone for GetBlockHeadersResponse
impl Clone for GetBlockHeadersResponse
source§fn clone(&self) -> GetBlockHeadersResponse
fn clone(&self) -> GetBlockHeadersResponse
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 GetBlockHeadersResponse
impl Debug for GetBlockHeadersResponse
source§impl Default for GetBlockHeadersResponse
impl Default for GetBlockHeadersResponse
source§fn default() -> GetBlockHeadersResponse
fn default() -> GetBlockHeadersResponse
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for GetBlockHeadersResponse
impl<'de> Deserialize<'de> for GetBlockHeadersResponse
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 GetBlockHeadersResponse
impl Hash for GetBlockHeadersResponse
source§impl Ord for GetBlockHeadersResponse
impl Ord for GetBlockHeadersResponse
source§fn cmp(&self, other: &GetBlockHeadersResponse) -> Ordering
fn cmp(&self, other: &GetBlockHeadersResponse) -> 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 GetBlockHeadersResponse
impl PartialEq for GetBlockHeadersResponse
source§impl PartialOrd for GetBlockHeadersResponse
impl PartialOrd for GetBlockHeadersResponse
source§impl Serialize for GetBlockHeadersResponse
impl Serialize for GetBlockHeadersResponse
impl Eq for GetBlockHeadersResponse
impl StructuralPartialEq for GetBlockHeadersResponse
Auto Trait Implementations§
impl Freeze for GetBlockHeadersResponse
impl RefUnwindSafe for GetBlockHeadersResponse
impl Send for GetBlockHeadersResponse
impl Sync for GetBlockHeadersResponse
impl Unpin for GetBlockHeadersResponse
impl UnwindSafe for GetBlockHeadersResponse
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
)