[][src]Struct eosio_system::VoterInfo

pub struct VoterInfo {
    pub owner: AccountName,
    pub proxy: AccountName,
    pub producers: Vec<AccountName>,
    pub staked: i64,
    pub last_vote_weight: f64,
    pub proxied_vote_weight: f64,
    pub is_proxy: bool,
    pub flags1: u32,
    pub reserved2: u32,
    pub reserved3: Asset,
}

https://github.com/EOSIO/eosio.contracts/blob/c046863a65d7e98424312ee8009f0acb493e6231/contracts/eosio.system/include/eosio.system/eosio.system.hpp#L165-L200

Fields

owner: AccountName

The voter

proxy: AccountName

The proxy set by the voter, if any

producers: Vec<AccountName>

The producers approved by this voter if no proxy set

staked: i64last_vote_weight: f64

The vote weight cast the last time the vote was updated.

Every time a vote is cast we must first "undo" the last vote weight, before casting the new vote weight. Vote weight is calculated as:

stated.amount * 2 ^ ( weeks_since_launch/weeks_per_year)
proxied_vote_weight: f64

Total vote weight delegated to this voter.

is_proxy: bool

Wether the voter is a proxy for others.

flags1: u32reserved2: u32reserved3: Asset

Trait Implementations

impl Clone for VoterInfo[src]

impl Debug for VoterInfo[src]

impl NumBytes for VoterInfo[src]

impl Read for VoterInfo[src]

impl Table for VoterInfo[src]

type Row = Self

TODO docs

impl Write for VoterInfo[src]

Auto Trait Implementations

impl RefUnwindSafe for VoterInfo

impl Send for VoterInfo

impl Sync for VoterInfo

impl Unpin for VoterInfo

impl UnwindSafe for VoterInfo

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.