Struct linera_chain::data_types::LiteVote
source · pub struct LiteVote {
pub value: LiteValue,
pub round: Round,
pub validator: ValidatorName,
pub signature: Signature,
}
Expand description
A vote on a statement from a validator, represented as a LiteValue
.
Fields§
§value: LiteValue
§round: Round
§validator: ValidatorName
§signature: Signature
Implementations§
source§impl LiteVote
impl LiteVote
sourcepub fn with_value(self, value: HashedValue) -> Option<Vote>
pub fn with_value(self, value: HashedValue) -> Option<Vote>
Returns the full vote, with the value, if it matches.
Trait Implementations§
source§impl<'de> Deserialize<'de> for LiteVote
impl<'de> Deserialize<'de> for LiteVote
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 LiteVote
impl RefUnwindSafe for LiteVote
impl Send for LiteVote
impl Sync for LiteVote
impl Unpin for LiteVote
impl UnwindSafe for LiteVote
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