Struct avalanche_types::jsonrpc::platformvm::ApiPrimaryValidator
source · pub struct ApiPrimaryValidator {Show 13 fields
pub tx_id: Id,
pub start_time: u64,
pub end_time: u64,
pub weight: Option<u64>,
pub stake_amount: Option<u64>,
pub node_id: Id,
pub reward_owner: Option<ApiOwner>,
pub potential_reward: Option<u64>,
pub delegation_fee: Option<f32>,
pub uptime: Option<f32>,
pub connected: Option<bool>,
pub delegators: Option<Vec<ApiPrimaryDelegator>>,
pub staked: Option<Vec<ApiUtxo>>,
}
Expand description
Fields§
§tx_id: Id
§start_time: u64
§end_time: u64
§weight: Option<u64>
§stake_amount: Option<u64>
None for subnet validator.
node_id: Id
§reward_owner: Option<ApiOwner>
None for subnet validator.
potential_reward: Option<u64>
§delegation_fee: Option<f32>
§uptime: Option<f32>
§connected: Option<bool>
§delegators: Option<Vec<ApiPrimaryDelegator>>
§staked: Option<Vec<ApiUtxo>>
Implementations§
Trait Implementations§
source§impl Clone for ApiPrimaryValidator
impl Clone for ApiPrimaryValidator
source§fn clone(&self) -> ApiPrimaryValidator
fn clone(&self) -> ApiPrimaryValidator
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 ApiPrimaryValidator
impl Debug for ApiPrimaryValidator
source§impl Default for ApiPrimaryValidator
impl Default for ApiPrimaryValidator
source§impl<'de> Deserialize<'de> for ApiPrimaryValidator
impl<'de> Deserialize<'de> for ApiPrimaryValidator
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 PartialEq<ApiPrimaryValidator> for ApiPrimaryValidator
impl PartialEq<ApiPrimaryValidator> for ApiPrimaryValidator
source§fn eq(&self, other: &ApiPrimaryValidator) -> bool
fn eq(&self, other: &ApiPrimaryValidator) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ApiPrimaryValidator
impl Serialize for ApiPrimaryValidator
impl StructuralPartialEq for ApiPrimaryValidator
Auto Trait Implementations§
impl RefUnwindSafe for ApiPrimaryValidator
impl Send for ApiPrimaryValidator
impl Sync for ApiPrimaryValidator
impl Unpin for ApiPrimaryValidator
impl UnwindSafe for ApiPrimaryValidator
Blanket Implementations§
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>
Wrap the input message
T
in a tonic::Request