Struct primitives::account::VoteStakeInfo
source · pub struct VoteStakeInfo {
pub amount: U256,
pub unlock_block_number: U256,
}
Fields§
§amount: U256
This is the number of tokens should be locked before
unlock_block_number
.
unlock_block_number: U256
This is the timestamp when the vote right will be invalid, measured in the number of past blocks.
Trait Implementations§
source§impl Clone for VoteStakeInfo
impl Clone for VoteStakeInfo
source§fn clone(&self) -> VoteStakeInfo
fn clone(&self) -> VoteStakeInfo
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for VoteStakeInfo
impl Debug for VoteStakeInfo
source§impl Decodable for VoteStakeInfo
impl Decodable for VoteStakeInfo
source§impl<'de> Deserialize<'de> for VoteStakeInfo
impl<'de> Deserialize<'de> for VoteStakeInfo
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Encodable for VoteStakeInfo
impl Encodable for VoteStakeInfo
source§impl Ord for VoteStakeInfo
impl Ord for VoteStakeInfo
source§fn cmp(&self, other: &VoteStakeInfo) -> Ordering
fn cmp(&self, other: &VoteStakeInfo) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for VoteStakeInfo
impl PartialEq for VoteStakeInfo
source§fn eq(&self, other: &VoteStakeInfo) -> bool
fn eq(&self, other: &VoteStakeInfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for VoteStakeInfo
impl PartialOrd for VoteStakeInfo
source§fn partial_cmp(&self, other: &VoteStakeInfo) -> Option<Ordering>
fn partial_cmp(&self, other: &VoteStakeInfo) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for VoteStakeInfo
impl Serialize for VoteStakeInfo
impl Eq for VoteStakeInfo
impl StructuralPartialEq for VoteStakeInfo
Auto Trait Implementations§
impl RefUnwindSafe for VoteStakeInfo
impl Send for VoteStakeInfo
impl Sync for VoteStakeInfo
impl Unpin for VoteStakeInfo
impl UnwindSafe for VoteStakeInfo
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