pub struct UnbondingEntry {
pub staker: Vec<u8>,
pub validator: ValidatorId,
pub amount: u64,
pub completion_height: u64,
}Expand description
An entry in the unbonding queue.
When a delegator undelegates, voting power is reduced immediately but
the tokens are locked until completion_height to prevent slash evasion.
Fields§
§staker: Vec<u8>§validator: ValidatorId§amount: u64§completion_height: u64Block height at which the unbonding completes.
Trait Implementations§
Source§impl Clone for UnbondingEntry
impl Clone for UnbondingEntry
Source§fn clone(&self) -> UnbondingEntry
fn clone(&self) -> UnbondingEntry
Returns a duplicate 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 UnbondingEntry
impl Debug for UnbondingEntry
Source§impl<'de> Deserialize<'de> for UnbondingEntry
impl<'de> Deserialize<'de> for UnbondingEntry
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
Auto Trait Implementations§
impl Freeze for UnbondingEntry
impl RefUnwindSafe for UnbondingEntry
impl Send for UnbondingEntry
impl Sync for UnbondingEntry
impl Unpin for UnbondingEntry
impl UnsafeUnpin for UnbondingEntry
impl UnwindSafe for UnbondingEntry
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