Struct near_primitives::views::LightClientBlockLiteView
source · pub struct LightClientBlockLiteView {
pub prev_block_hash: CryptoHash,
pub inner_rest_hash: CryptoHash,
pub inner_lite: BlockHeaderInnerLiteView,
}Fields§
§prev_block_hash: CryptoHash§inner_rest_hash: CryptoHash§inner_lite: BlockHeaderInnerLiteViewImplementations§
source§impl LightClientBlockLiteView
impl LightClientBlockLiteView
pub fn hash(&self) -> CryptoHash
Trait Implementations§
source§impl BorshDeserialize for LightClientBlockLiteViewwhere
CryptoHash: BorshDeserialize,
BlockHeaderInnerLiteView: BorshDeserialize,
impl BorshDeserialize for LightClientBlockLiteViewwhere CryptoHash: BorshDeserialize, BlockHeaderInnerLiteView: BorshDeserialize,
fn deserialize_reader<R: Read>(reader: &mut R) -> Result<Self, Error>
source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where R: Read,
source§impl BorshSerialize for LightClientBlockLiteViewwhere
CryptoHash: BorshSerialize,
BlockHeaderInnerLiteView: BorshSerialize,
impl BorshSerialize for LightClientBlockLiteViewwhere CryptoHash: BorshSerialize, BlockHeaderInnerLiteView: BorshSerialize,
source§impl Clone for LightClientBlockLiteView
impl Clone for LightClientBlockLiteView
source§fn clone(&self) -> LightClientBlockLiteView
fn clone(&self) -> LightClientBlockLiteView
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 LightClientBlockLiteView
impl Debug for LightClientBlockLiteView
source§impl<'de> Deserialize<'de> for LightClientBlockLiteView
impl<'de> Deserialize<'de> for LightClientBlockLiteView
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 From<BlockHeader> for LightClientBlockLiteView
impl From<BlockHeader> for LightClientBlockLiteView
source§fn from(header: BlockHeader) -> Self
fn from(header: BlockHeader) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for LightClientBlockLiteView
impl Send for LightClientBlockLiteView
impl Sync for LightClientBlockLiteView
impl Unpin for LightClientBlockLiteView
impl UnwindSafe for LightClientBlockLiteView
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