pub struct GetBlockHeadersResponse {
pub tip_height: Height,
pub block_headers: Vec<BlockHeader>,
}Expand description
The response returned for a request for getting the block headers from a given height.
Fields§
§tip_height: Height§block_headers: Vec<BlockHeader>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
Source§impl PartialEq for GetBlockHeadersResponse
impl PartialEq 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