pub struct QueryConsumerValidatorsValidator {Show 14 fields
pub provider_address: String,
pub consumer_key: Option<PublicKey>,
pub power: i64,
pub rate: String,
pub consumer_power: i64,
pub consumer_commission_rate: String,
pub provider_commission_rate: String,
pub description: Option<Description>,
pub provider_operator_address: String,
pub jailed: bool,
pub status: i32,
pub provider_tokens: String,
pub provider_power: i64,
pub validates_current_epoch: bool,
}
Fields§
§provider_address: String
The consensus address of the validator on the provider chain
consumer_key: Option<PublicKey>
The consumer public key of the validator used on the consumer chain
power: i64
[DEPRECATED] use consumer_power
instead
rate: String
[DEPRECATED] use consumer_commission_rate
instead
consumer_power: i64
The power of the validator used on the consumer chain
consumer_commission_rate: String
The rate to charge delegators on the consumer chain, as a fraction
provider_commission_rate: String
The rate to charge delegators on the provider chain, as a fraction
description: Option<Description>
description defines the description terms for the validator
provider_operator_address: String
provider_operator_address defines the address of the validator’s operator
jailed: bool
jailed defined whether the validator has been jailed from bonded status or not.
status: i32
status is the validator status (bonded/unbonding/unbonded).
provider_tokens: String
provider_tokens defines the delegated tokens (incl. self-delegation).
provider_power: i64
The power of the validator used on the provider chain
validates_current_epoch: bool
validates_current_epoch defines whether the validator has to validate for the current epoch or not
Implementations§
Source§impl QueryConsumerValidatorsValidator
impl QueryConsumerValidatorsValidator
Sourcepub fn status(&self) -> BondStatus
pub fn status(&self) -> BondStatus
Returns the enum value of status
, or the default if the field is set to an invalid enum value.
Sourcepub fn set_status(&mut self, value: BondStatus)
pub fn set_status(&mut self, value: BondStatus)
Sets status
to the provided enum value.
Trait Implementations§
Source§impl Clone for QueryConsumerValidatorsValidator
impl Clone for QueryConsumerValidatorsValidator
Source§fn clone(&self) -> QueryConsumerValidatorsValidator
fn clone(&self) -> QueryConsumerValidatorsValidator
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Message for QueryConsumerValidatorsValidator
impl Message for QueryConsumerValidatorsValidator
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.Source§impl Name for QueryConsumerValidatorsValidator
impl Name for QueryConsumerValidatorsValidator
Source§const NAME: &'static str = "QueryConsumerValidatorsValidator"
const NAME: &'static str = "QueryConsumerValidatorsValidator"
Message
.
This name is the same as it appears in the source .proto file, e.g. FooBar
.Source§const PACKAGE: &'static str = "interchain_security.ccv.provider.v1"
const PACKAGE: &'static str = "interchain_security.ccv.provider.v1"
.
, e.g. google.protobuf
.Source§fn full_name() -> String
fn full_name() -> String
Message
.
It’s prefixed with the package name and names of any parent messages,
e.g. google.rpc.BadRequest.FieldViolation
.
By default, this is the package name followed by the message name.
Fully-qualified names must be unique within a domain of Type URLs.Source§impl PartialEq for QueryConsumerValidatorsValidator
impl PartialEq for QueryConsumerValidatorsValidator
Source§fn eq(&self, other: &QueryConsumerValidatorsValidator) -> bool
fn eq(&self, other: &QueryConsumerValidatorsValidator) -> bool
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for QueryConsumerValidatorsValidator
Auto Trait Implementations§
impl Freeze for QueryConsumerValidatorsValidator
impl RefUnwindSafe for QueryConsumerValidatorsValidator
impl Send for QueryConsumerValidatorsValidator
impl Sync for QueryConsumerValidatorsValidator
impl Unpin for QueryConsumerValidatorsValidator
impl UnwindSafe for QueryConsumerValidatorsValidator
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request