Struct avalanche_types::jsonrpc::platformvm::ApiPrimaryDelegator
source · [−]pub struct ApiPrimaryDelegator {
pub tx_id: Option<String>,
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>>,
}
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<String>
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>>
Implementations
Trait Implementations
sourceimpl Clone for ApiPrimaryDelegator
impl Clone for ApiPrimaryDelegator
sourcefn clone(&self) -> ApiPrimaryDelegator
fn clone(&self) -> ApiPrimaryDelegator
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 ApiPrimaryDelegator
impl Debug for ApiPrimaryDelegator
sourceimpl Default for ApiPrimaryDelegator
impl Default for ApiPrimaryDelegator
sourceimpl<'de> Deserialize<'de> for ApiPrimaryDelegator
impl<'de> Deserialize<'de> for ApiPrimaryDelegator
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<ApiPrimaryDelegator> for ApiPrimaryDelegator
impl PartialEq<ApiPrimaryDelegator> for ApiPrimaryDelegator
sourcefn eq(&self, other: &ApiPrimaryDelegator) -> bool
fn eq(&self, other: &ApiPrimaryDelegator) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ApiPrimaryDelegator) -> bool
fn ne(&self, other: &ApiPrimaryDelegator) -> bool
This method tests for !=
.
sourceimpl Serialize for ApiPrimaryDelegator
impl Serialize for ApiPrimaryDelegator
impl StructuralPartialEq for ApiPrimaryDelegator
Auto Trait Implementations
impl RefUnwindSafe for ApiPrimaryDelegator
impl Send for ApiPrimaryDelegator
impl Sync for ApiPrimaryDelegator
impl Unpin for ApiPrimaryDelegator
impl UnwindSafe for ApiPrimaryDelegator
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