pub struct LightClientBlockView {
pub prev_block_hash: CryptoHash,
pub next_block_inner_hash: CryptoHash,
pub inner_lite: BlockHeaderInnerLiteView,
pub inner_rest_hash: CryptoHash,
pub next_bps: Option<Vec<ValidatorStakeView>>,
pub approvals_after_next: Vec<Option<Signature>>,
}Expand description
Light client block view from next_light_client_block RPC.
Fields§
§prev_block_hash: CryptoHashPrevious block hash.
next_block_inner_hash: CryptoHashNext block inner hash.
inner_lite: BlockHeaderInnerLiteViewInner lite header.
inner_rest_hash: CryptoHashHash of inner rest fields.
next_bps: Option<Vec<ValidatorStakeView>>Next epoch block producers (None if unchanged).
approvals_after_next: Vec<Option<Signature>>Approvals after next block.
Trait Implementations§
Source§impl Clone for LightClientBlockView
impl Clone for LightClientBlockView
Source§fn clone(&self) -> LightClientBlockView
fn clone(&self) -> LightClientBlockView
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 LightClientBlockView
impl Debug for LightClientBlockView
Source§impl<'de> Deserialize<'de> for LightClientBlockView
impl<'de> Deserialize<'de> for LightClientBlockView
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 LightClientBlockView
impl RefUnwindSafe for LightClientBlockView
impl Send for LightClientBlockView
impl Sync for LightClientBlockView
impl Unpin for LightClientBlockView
impl UnsafeUnpin for LightClientBlockView
impl UnwindSafe for LightClientBlockView
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