Struct fadroma::prelude::cosmwasm_std::FullDelegation   
source · [−]pub struct FullDelegation {
    pub delegator: HumanAddr,
    pub validator: HumanAddr,
    pub amount: Coin,
    pub can_redelegate: Coin,
    pub accumulated_rewards: Coin,
}Expand description
FullDelegation is all the info on the delegation, some (like accumulated_reward and can_redelegate) is expensive to query
Fields
delegator: HumanAddrvalidator: HumanAddramount: 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: CoinHow much we can currently withdraw
Trait Implementations
sourceimpl Canonize for FullDelegation
 
impl Canonize for FullDelegation
sourceimpl Clone for FullDelegation
 
impl Clone for FullDelegation
sourcefn clone(&self) -> FullDelegation
 
fn clone(&self) -> FullDelegation
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for FullDelegation
 
impl Debug for FullDelegation
sourceimpl<'de> Deserialize<'de> for FullDelegation
 
impl<'de> Deserialize<'de> for FullDelegation
sourcefn deserialize<__D>(
    __deserializer: __D
) -> Result<FullDelegation, <__D as Deserializer<'de>>::Error> where
    __D: Deserializer<'de>, 
 
fn deserialize<__D>(
    __deserializer: __D
) -> Result<FullDelegation, <__D as Deserializer<'de>>::Error> where
    __D: Deserializer<'de>, 
Deserialize this value from the given Serde deserializer. Read more
sourceimpl From<FullDelegation> for Delegation
 
impl From<FullDelegation> for Delegation
sourcefn from(full: FullDelegation) -> Delegation
 
fn from(full: FullDelegation) -> Delegation
Converts to this type from the input type.
sourceimpl Humanize for FullDelegation
 
impl Humanize for FullDelegation
sourceimpl JsonSchema for FullDelegation
 
impl JsonSchema for FullDelegation
sourcefn schema_name() -> String
 
fn schema_name() -> String
The name of the generated JSON Schema. Read more
sourcefn json_schema(gen: &mut SchemaGenerator) -> Schema
 
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
sourcefn 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 more
sourceimpl PartialEq<FullDelegation> for FullDelegation
 
impl PartialEq<FullDelegation> for FullDelegation
sourcefn 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 ==. Read more
sourcefn ne(&self, other: &FullDelegation) -> bool
 
fn ne(&self, other: &FullDelegation) -> bool
This method tests for !=.
sourceimpl Serialize for FullDelegation
 
impl Serialize for FullDelegation
sourcefn serialize<__S>(
    &self, 
    __serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
    __S: Serializer, 
 
fn serialize<__S>(
    &self, 
    __serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
    __S: Serializer, 
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for FullDelegation
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
sourceimpl<T> BorrowMut<T> for T where
    T: ?Sized, 
 
impl<T> BorrowMut<T> for T where
    T: ?Sized, 
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
    T: Clone, 
 
impl<T> ToOwned for T where
    T: Clone, 
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
 
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more