pub struct ValidatorSignature {
pub validator: Address,
pub signature: Vec<u8>,
pub voting_power: u128,
}Expand description
A signature from a validator in the consensus process
Fields§
§validator: AddressThe validator’s address
signature: Vec<u8>The signature bytes
voting_power: u128The voting power of the validator
Trait Implementations§
Source§impl Clone for ValidatorSignature
impl Clone for ValidatorSignature
Source§fn clone(&self) -> ValidatorSignature
fn clone(&self) -> ValidatorSignature
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ValidatorSignature
impl Debug for ValidatorSignature
Source§impl<'de> Deserialize<'de> for ValidatorSignature
impl<'de> Deserialize<'de> for ValidatorSignature
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
impl Eq for ValidatorSignature
Source§impl PartialEq for ValidatorSignature
impl PartialEq for ValidatorSignature
Source§fn eq(&self, other: &ValidatorSignature) -> bool
fn eq(&self, other: &ValidatorSignature) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ValidatorSignature
impl Serialize for ValidatorSignature
impl StructuralPartialEq for ValidatorSignature
Auto Trait Implementations§
impl Freeze for ValidatorSignature
impl RefUnwindSafe for ValidatorSignature
impl Send for ValidatorSignature
impl Sync for ValidatorSignature
impl Unpin for ValidatorSignature
impl UnsafeUnpin for ValidatorSignature
impl UnwindSafe for ValidatorSignature
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