Struct secret_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: HumanAddr
validator: HumanAddr
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: Coin
How much we can currently withdraw
Trait Implementations
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<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
sourceimpl From<FullDelegation> for Delegation
impl From<FullDelegation> for Delegation
sourcefn from(full: FullDelegation) -> Self
fn from(full: FullDelegation) -> Self
Converts to this type from the input type.
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
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