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: StringA validator address (e.g. cosmosvaloper1…)
amount: CoinHow much we have locked in the delegation
can_redelegate: Coincan_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 schema_id() -> Cow<'static, str>
 
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. 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 for FullDelegation
 
impl PartialEq for FullDelegation
source§impl Serialize for FullDelegation
 
impl Serialize for FullDelegation
impl Eq for FullDelegation
impl StructuralPartialEq for FullDelegation
Auto Trait Implementations§
impl Freeze for FullDelegation
impl RefUnwindSafe for FullDelegation
impl Send for FullDelegation
impl Sync for FullDelegation
impl Unpin for FullDelegation
impl UnwindSafe for FullDelegation
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
source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
 
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)