Struct dao::voting::voting_engine::events::BallotCast
source · pub struct BallotCast {
pub voter: Address,
pub voting_id: VotingId,
pub voting_type: VotingType,
pub choice: Choice,
pub stake: Balance,
}
Expand description
Event thrown after ballot is cast.
Fields§
§voter: Address
The voter’s address.
voting_id: VotingId
A unique voting id.
voting_type: VotingType
Voting type (Formal/Informal).
choice: Choice
Selected option.
stake: Balance
Vote power.
Implementations§
Trait Implementations§
source§impl BorshDeserialize for BallotCast
impl BorshDeserialize for BallotCast
source§fn deserialize(buf: &mut &[u8]) -> Result<Self>
fn deserialize(buf: &mut &[u8]) -> Result<Self>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
§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.
source§impl BorshSerialize for BallotCast
impl BorshSerialize for BallotCast
source§impl Debug for BallotCast
impl Debug for BallotCast
source§impl OdraEvent for BallotCast
impl OdraEvent for BallotCast
source§impl PartialEq for BallotCast
impl PartialEq for BallotCast
source§fn eq(&self, other: &BallotCast) -> bool
fn eq(&self, other: &BallotCast) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for BallotCast
impl StructuralPartialEq for BallotCast
Auto Trait Implementations§
impl RefUnwindSafe for BallotCast
impl Send for BallotCast
impl Sync for BallotCast
impl Unpin for BallotCast
impl UnwindSafe for BallotCast
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