[−][src]Struct eosio_system::VoterInfo
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: i64
last_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: u32
reserved2: u32
reserved3: Asset
Trait Implementations
impl Clone for VoterInfo
[src]
impl Debug for VoterInfo
[src]
impl NumBytes for VoterInfo
[src]
impl Read for VoterInfo
[src]
fn read(bytes: &[u8], pos: &mut usize) -> Result<Self, ReadError>
[src]
fn unpack<T>(bytes: T) -> Result<Self, ReadError> where
T: AsRef<[u8]>,
[src]
T: AsRef<[u8]>,
impl Table for VoterInfo
[src]
const NAME: TableName
[src]
type Row = Self
TODO docs
fn primary_key(row: &Self::Row) -> u64
[src]
fn secondary_keys(row: &Self::Row) -> SecondaryKeys
[src]
fn table<C, S>(code: C, scope: S) -> PrimaryTableIndex<Self> where
C: Into<AccountName>,
S: Into<ScopeName>,
[src]
C: Into<AccountName>,
S: Into<ScopeName>,
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,