Struct dao::voting::voting_engine::events::BallotCanceled
source · pub struct BallotCanceled {
pub voter: Address,
pub voting_id: VotingId,
pub voting_type: VotingType,
pub choice: Choice,
pub stake: Balance,
}
Expand description
Event thrown after ballot is canceled during full slashing.
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 BallotCanceled
impl BorshDeserialize for BallotCanceled
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 BallotCanceled
impl BorshSerialize for BallotCanceled
source§impl Debug for BallotCanceled
impl Debug for BallotCanceled
source§impl OdraEvent for BallotCanceled
impl OdraEvent for BallotCanceled
source§impl PartialEq for BallotCanceled
impl PartialEq for BallotCanceled
source§fn eq(&self, other: &BallotCanceled) -> bool
fn eq(&self, other: &BallotCanceled) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for BallotCanceled
impl StructuralPartialEq for BallotCanceled
Auto Trait Implementations§
impl RefUnwindSafe for BallotCanceled
impl Send for BallotCanceled
impl Sync for BallotCanceled
impl Unpin for BallotCanceled
impl UnwindSafe for BallotCanceled
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