Struct cosmwasm_std::FullDelegation
source · 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§
source§impl Clone for FullDelegation
impl Clone for FullDelegation
source§fn clone(&self) -> FullDelegation
fn clone(&self) -> FullDelegation
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 FullDelegation
impl Debug for FullDelegation
source§impl<'de> Deserialize<'de> for FullDelegation
impl<'de> Deserialize<'de> for FullDelegation
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 From<FullDelegation> for Delegation
impl From<FullDelegation> for Delegation
source§fn from(full: FullDelegation) -> Self
fn from(full: FullDelegation) -> Self
Converts to this type from the input type.
source§impl JsonSchema for FullDelegation
impl JsonSchema for FullDelegation
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moresource§impl PartialEq<FullDelegation> for FullDelegation
impl PartialEq<FullDelegation> for FullDelegation
source§fn eq(&self, other: &FullDelegation) -> bool
fn eq(&self, other: &FullDelegation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.