Struct dao::voting::voting_engine::voting_state_machine::Stats
source · pub struct Stats {
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,
}
Expand description
Voting statistics.
Fields§
§stake_in_favor: Balance
The total in favor
stake.
stake_against: Balance
The total against
stake.
unbound_stake_in_favor: Balance
The total unbounded in favor
stake.
unbound_stake_against: Balance
The total unbounded against
stake.
votes_in_favor: u32
The number of VA’s voted in favor
.
votes_against: u32
The number of VA’s voted against
.
Trait Implementations§
source§impl BorshDeserialize for Stats
impl BorshDeserialize for Stats
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.
Auto Trait Implementations§
impl RefUnwindSafe for Stats
impl Send for Stats
impl Sync for Stats
impl Unpin for Stats
impl UnwindSafe for Stats
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