Struct cosmwasm_std::Validator
source · pub struct Validator {
pub address: String,
pub commission: Decimal,
pub max_commission: Decimal,
pub max_change_rate: Decimal,
}
Expand description
Instances are created in the querier.
Fields§
§address: String
A validator address (e.g. cosmosvaloper1…)
commission: Decimal
§max_commission: Decimal
§max_change_rate: Decimal
TODO: what units are these (in terms of time)?
Trait Implementations§
source§impl<'de> Deserialize<'de> for Validator
impl<'de> Deserialize<'de> for Validator
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 JsonSchema for Validator
impl JsonSchema for Validator
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 more