Struct dao::voting::voting_engine::events::VotingCanceled
source · pub struct VotingCanceled {
pub voting_id: VotingId,
pub voting_type: VotingType,
pub unstakes: BTreeMap<Address, Balance>,
}
Expand description
Event thrown after voting is canceled during full slashing.
Fields§
§voting_id: VotingId
A unique voting id.
voting_type: VotingType
Voting type (Formal/Informal).
unstakes: BTreeMap<Address, Balance>
Map of voters’ addresses to their canceled stakes.
Implementations§
source§impl VotingCanceled
impl VotingCanceled
pub fn new( voting_id: VotingId, voting_type: VotingType, unstakes: BTreeMap<Address, Balance> ) -> Self
Trait Implementations§
source§impl BorshDeserialize for VotingCanceled
impl BorshDeserialize for VotingCanceled
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 VotingCanceled
impl BorshSerialize for VotingCanceled
source§impl Debug for VotingCanceled
impl Debug for VotingCanceled
source§impl OdraEvent for VotingCanceled
impl OdraEvent for VotingCanceled
source§impl PartialEq for VotingCanceled
impl PartialEq for VotingCanceled
source§fn eq(&self, other: &VotingCanceled) -> bool
fn eq(&self, other: &VotingCanceled) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for VotingCanceled
impl StructuralPartialEq for VotingCanceled
Auto Trait Implementations§
impl RefUnwindSafe for VotingCanceled
impl Send for VotingCanceled
impl Sync for VotingCanceled
impl Unpin for VotingCanceled
impl UnwindSafe for VotingCanceled
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