Struct near_primitives::sharding::ShardChunkHeaderV2 [−][src]
Fields
inner: ShardChunkHeaderInner
height_included: BlockHeight
signature: Signature
Signature of the chunk producer.
hash: ChunkHash
Implementations
impl ShardChunkHeaderV2
[src]
pub fn init(&mut self)
[src]
pub fn compute_hash(inner: &ShardChunkHeaderInner) -> ChunkHash
[src]
pub fn new(
prev_block_hash: CryptoHash,
prev_state_root: StateRoot,
outcome_root: CryptoHash,
encoded_merkle_root: CryptoHash,
encoded_length: u64,
height: BlockHeight,
shard_id: ShardId,
gas_used: Gas,
gas_limit: Gas,
balance_burnt: Balance,
outgoing_receipts_root: CryptoHash,
tx_root: CryptoHash,
validator_proposals: Vec<ValidatorStake>,
signer: &dyn ValidatorSigner
) -> Self
[src]
prev_block_hash: CryptoHash,
prev_state_root: StateRoot,
outcome_root: CryptoHash,
encoded_merkle_root: CryptoHash,
encoded_length: u64,
height: BlockHeight,
shard_id: ShardId,
gas_used: Gas,
gas_limit: Gas,
balance_burnt: Balance,
outgoing_receipts_root: CryptoHash,
tx_root: CryptoHash,
validator_proposals: Vec<ValidatorStake>,
signer: &dyn ValidatorSigner
) -> Self
Trait Implementations
impl BorshDeserialize for ShardChunkHeaderV2 where
ShardChunkHeaderInner: BorshDeserialize,
BlockHeight: BorshDeserialize,
Signature: BorshDeserialize,
[src]
ShardChunkHeaderInner: BorshDeserialize,
BlockHeight: BorshDeserialize,
Signature: BorshDeserialize,
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
[src]
pub fn try_from_slice(v: &[u8]) -> Result<Self, Error>
[src]
pub fn is_u8() -> bool
[src]
impl BorshSerialize for ShardChunkHeaderV2 where
ShardChunkHeaderInner: BorshSerialize,
BlockHeight: BorshSerialize,
Signature: BorshSerialize,
[src]
ShardChunkHeaderInner: BorshSerialize,
BlockHeight: BorshSerialize,
Signature: BorshSerialize,
fn serialize<W: Write>(&self, writer: &mut W) -> Result<(), Error>
[src]
pub fn try_to_vec(&self) -> Result<Vec<u8, Global>, Error>
[src]
pub fn is_u8() -> bool
[src]
impl Clone for ShardChunkHeaderV2
[src]
fn clone(&self) -> ShardChunkHeaderV2
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ShardChunkHeaderV2
[src]
impl Eq for ShardChunkHeaderV2
[src]
impl PartialEq<ShardChunkHeaderV2> for ShardChunkHeaderV2
[src]
fn eq(&self, other: &ShardChunkHeaderV2) -> bool
[src]
fn ne(&self, other: &ShardChunkHeaderV2) -> bool
[src]
impl Serialize for ShardChunkHeaderV2
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralEq for ShardChunkHeaderV2
[src]
impl StructuralPartialEq for ShardChunkHeaderV2
[src]
Auto Trait Implementations
impl RefUnwindSafe for ShardChunkHeaderV2
impl Send for ShardChunkHeaderV2
impl Sync for ShardChunkHeaderV2
impl Unpin for ShardChunkHeaderV2
impl UnwindSafe for ShardChunkHeaderV2
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
pub fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,