pub struct GetBlockHeadersResponse {
pub tip_height: u32,
pub block_headers: Vec<Vec<u8>>,
}Expand description
Response type for the BitcoinCanister::get_block_headers function.
Fields§
§tip_height: u32The tip of the chain, current to when the headers were fetched.
block_headers: Vec<Vec<u8>>The headers of the requested block range.
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 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 GetBlockHeadersResponse
impl Debug for GetBlockHeadersResponse
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
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