Struct cosmwasm_std::FullDelegation [−][src]
pub struct FullDelegation { pub delegator: Addr, pub validator: String, pub amount: Coin, pub can_redelegate: Coin, pub accumulated_rewards: Vec<Coin>, }
Expand description
FullDelegation is all the info on the delegation, some (like accumulated_reward and can_redelegate) is expensive to query.
Instances are created in the querier.
Fields
delegator: Addr
validator: String
A validator address (e.g. cosmosvaloper1…)
amount: Coin
How much we have locked in the delegation
can_redelegate: Coin
can_redelegate captures how much can be immediately redelegated. 0 is no redelegation and can_redelegate == amount is redelegate all but there are many places between the two
accumulated_rewards: Vec<Coin>
How much we can currently withdraw
Trait Implementations
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
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for FullDelegation
impl Send for FullDelegation
impl Sync for FullDelegation
impl Unpin for FullDelegation
impl UnwindSafe for FullDelegation
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self