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 moresourceimpl 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
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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
sourcefn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request