pub struct GetCurrentValidatorsResult {
pub validators: Option<Vec<ApiPrimaryValidator>>,
}
Expand description
ref. https://docs.avax.network/build/avalanchego-apis/p-chain/#platformgetcurrentvalidators ref. https://pkg.go.dev/github.com/ava-labs/avalanchego/vms/platformvm#APIPrimaryValidator
Fields
validators: Option<Vec<ApiPrimaryValidator>>
Implementations
Trait Implementations
sourceimpl Clone for GetCurrentValidatorsResult
impl Clone for GetCurrentValidatorsResult
sourcefn clone(&self) -> GetCurrentValidatorsResult
fn clone(&self) -> GetCurrentValidatorsResult
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 GetCurrentValidatorsResult
impl Debug for GetCurrentValidatorsResult
sourceimpl Default for GetCurrentValidatorsResult
impl Default for GetCurrentValidatorsResult
sourceimpl<'de> Deserialize<'de> for GetCurrentValidatorsResult
impl<'de> Deserialize<'de> for GetCurrentValidatorsResult
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<GetCurrentValidatorsResult> for GetCurrentValidatorsResult
impl PartialEq<GetCurrentValidatorsResult> for GetCurrentValidatorsResult
sourcefn eq(&self, other: &GetCurrentValidatorsResult) -> bool
fn eq(&self, other: &GetCurrentValidatorsResult) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &GetCurrentValidatorsResult) -> bool
fn ne(&self, other: &GetCurrentValidatorsResult) -> bool
This method tests for !=
.
impl StructuralPartialEq for GetCurrentValidatorsResult
Auto Trait Implementations
impl RefUnwindSafe for GetCurrentValidatorsResult
impl Send for GetCurrentValidatorsResult
impl Sync for GetCurrentValidatorsResult
impl Unpin for GetCurrentValidatorsResult
impl UnwindSafe for GetCurrentValidatorsResult
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