pub struct ConsensusProposalHash(pub Vec<u8>);Tuple Fields§
§0: Vec<u8>Implementations§
Source§impl ConsensusProposalHash
impl ConsensusProposalHash
pub fn from_hex(s: &str) -> Result<Self, FromHexError>
Trait Implementations§
Source§impl BorshDeserialize for ConsensusProposalHash
impl BorshDeserialize for ConsensusProposalHash
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 Clone for ConsensusProposalHash
impl Clone for ConsensusProposalHash
Source§fn clone(&self) -> ConsensusProposalHash
fn clone(&self) -> ConsensusProposalHash
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 ComposeSchema for ConsensusProposalHash
impl ComposeSchema for ConsensusProposalHash
Source§impl Debug for ConsensusProposalHash
impl Debug for ConsensusProposalHash
Source§impl Default for ConsensusProposalHash
impl Default for ConsensusProposalHash
Source§fn default() -> ConsensusProposalHash
fn default() -> ConsensusProposalHash
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ConsensusProposalHash
impl<'de> Deserialize<'de> for ConsensusProposalHash
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 Display for ConsensusProposalHash
impl Display for ConsensusProposalHash
Source§impl From<&[u8]> for ConsensusProposalHash
impl From<&[u8]> for ConsensusProposalHash
Source§impl Hash for ConsensusProposalHash
impl Hash for ConsensusProposalHash
Source§impl Hashed<ConsensusProposalHash> for ConsensusProposal
This is the hash of the proposal, signed by validators
Any consensus-critical data should be hashed here.
impl Hashed<ConsensusProposalHash> for ConsensusProposal
This is the hash of the proposal, signed by validators Any consensus-critical data should be hashed here.
fn hashed(&self) -> ConsensusProposalHash
Source§impl Hashed<ConsensusProposalHash> for SignedBlock
impl Hashed<ConsensusProposalHash> for SignedBlock
fn hashed(&self) -> ConsensusProposalHash
Source§impl Ord for ConsensusProposalHash
impl Ord for ConsensusProposalHash
Source§fn cmp(&self, other: &ConsensusProposalHash) -> Ordering
fn cmp(&self, other: &ConsensusProposalHash) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ConsensusProposalHash
impl PartialEq for ConsensusProposalHash
Source§impl PartialOrd for ConsensusProposalHash
impl PartialOrd for ConsensusProposalHash
Source§impl Serialize for ConsensusProposalHash
impl Serialize for ConsensusProposalHash
Source§impl ToSchema for ConsensusProposalHash
impl ToSchema for ConsensusProposalHash
impl Eq for ConsensusProposalHash
impl StructuralPartialEq for ConsensusProposalHash
Auto Trait Implementations§
impl Freeze for ConsensusProposalHash
impl RefUnwindSafe for ConsensusProposalHash
impl Send for ConsensusProposalHash
impl Sync for ConsensusProposalHash
impl Unpin for ConsensusProposalHash
impl UnsafeUnpin for ConsensusProposalHash
impl UnwindSafe for ConsensusProposalHash
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.