Struct avalanche_types::jsonrpc::platformvm::ApiPrimaryValidator
source · [−]pub struct ApiPrimaryValidator {Show 13 fields
pub tx_id: Option<Id>,
pub start_time: Option<u64>,
pub end_time: Option<u64>,
pub weight: Option<u64>,
pub stake_amount: Option<u64>,
pub node_id: Option<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 staked: Option<Vec<ApiUtxo>>,
pub delegators: Option<Vec<ApiPrimaryDelegator>>,
}
Expand description
ref. https://pkg.go.dev/github.com/ava-labs/avalanchego/vms/platformvm#APIPrimaryValidator ref. https://pkg.go.dev/github.com/ava-labs/avalanchego/vms/platformvm#APIStaker
Fields
tx_id: Option<Id>
start_time: Option<u64>
end_time: Option<u64>
weight: Option<u64>
stake_amount: Option<u64>
node_id: Option<Id>
reward_owner: Option<ApiOwner>
potential_reward: Option<u64>
delegation_fee: Option<f32>
uptime: Option<f32>
connected: Option<bool>
staked: Option<Vec<ApiUtxo>>
delegators: Option<Vec<ApiPrimaryDelegator>>
Implementations
Trait Implementations
sourceimpl Clone for ApiPrimaryValidator
impl Clone for ApiPrimaryValidator
sourcefn clone(&self) -> ApiPrimaryValidator
fn clone(&self) -> ApiPrimaryValidator
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 ApiPrimaryValidator
impl Debug for ApiPrimaryValidator
sourceimpl Default for ApiPrimaryValidator
impl Default for ApiPrimaryValidator
sourceimpl<'de> Deserialize<'de> for ApiPrimaryValidator
impl<'de> Deserialize<'de> for ApiPrimaryValidator
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 PartialEq<ApiPrimaryValidator> for ApiPrimaryValidator
impl PartialEq<ApiPrimaryValidator> for ApiPrimaryValidator
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &ApiPrimaryValidator) -> bool
fn ne(&self, other: &ApiPrimaryValidator) -> bool
This method tests for !=
.
sourceimpl 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
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