Struct dao::voting::voting_engine::events::VotingEnded
source · pub struct VotingEnded {Show 13 fields
pub voting_id: VotingId,
pub voting_type: VotingType,
pub voting_result: VotingResult,
pub stake_in_favor: Balance,
pub stake_against: Balance,
pub unbound_stake_in_favor: Balance,
pub unbound_stake_against: Balance,
pub votes_in_favor: u32,
pub votes_against: u32,
pub unstakes: BTreeMap<(Address, Reason), Balance>,
pub stakes: BTreeMap<(Address, Reason), Balance>,
pub burns: BTreeMap<(Address, Reason), Balance>,
pub mints: BTreeMap<(Address, Reason), Balance>,
}
Expand description
Event thrown when voting ends.
Fields§
§voting_id: VotingId
§voting_type: VotingType
§voting_result: VotingResult
§stake_in_favor: Balance
§stake_against: Balance
§unbound_stake_in_favor: Balance
§unbound_stake_against: Balance
§votes_in_favor: u32
§votes_against: u32
§unstakes: BTreeMap<(Address, Reason), Balance>
§stakes: BTreeMap<(Address, Reason), Balance>
§burns: BTreeMap<(Address, Reason), Balance>
§mints: BTreeMap<(Address, Reason), Balance>
Implementations§
source§impl VotingEnded
impl VotingEnded
Trait Implementations§
source§impl BorshDeserialize for VotingEnded
impl BorshDeserialize for VotingEnded
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 VotingEnded
impl BorshSerialize for VotingEnded
source§impl Debug for VotingEnded
impl Debug for VotingEnded
source§impl OdraEvent for VotingEnded
impl OdraEvent for VotingEnded
source§impl PartialEq for VotingEnded
impl PartialEq for VotingEnded
source§fn eq(&self, other: &VotingEnded) -> bool
fn eq(&self, other: &VotingEnded) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for VotingEnded
impl StructuralPartialEq for VotingEnded
Auto Trait Implementations§
impl RefUnwindSafe for VotingEnded
impl Send for VotingEnded
impl Sync for VotingEnded
impl Unpin for VotingEnded
impl UnwindSafe for VotingEnded
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