pub struct GetCurrentValidatorsResponse {
pub jsonrpc: String,
pub id: u32,
pub result: Option<GetCurrentValidatorsResult>,
}
Expand description
ref. https://docs.avax.network/build/avalanchego-apis/p-chain/#platformgetcurrentvalidators
Fields
jsonrpc: String
id: u32
result: Option<GetCurrentValidatorsResult>
Implementations
Trait Implementations
sourceimpl Clone for GetCurrentValidatorsResponse
impl Clone for GetCurrentValidatorsResponse
sourcefn clone(&self) -> GetCurrentValidatorsResponse
fn clone(&self) -> GetCurrentValidatorsResponse
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 GetCurrentValidatorsResponse
impl Debug for GetCurrentValidatorsResponse
sourceimpl<'de> Deserialize<'de> for GetCurrentValidatorsResponse
impl<'de> Deserialize<'de> for GetCurrentValidatorsResponse
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<GetCurrentValidatorsResponse> for GetCurrentValidatorsResponse
impl PartialEq<GetCurrentValidatorsResponse> for GetCurrentValidatorsResponse
sourcefn eq(&self, other: &GetCurrentValidatorsResponse) -> bool
fn eq(&self, other: &GetCurrentValidatorsResponse) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &GetCurrentValidatorsResponse) -> bool
fn ne(&self, other: &GetCurrentValidatorsResponse) -> bool
This method tests for !=
.
impl StructuralPartialEq for GetCurrentValidatorsResponse
Auto Trait Implementations
impl RefUnwindSafe for GetCurrentValidatorsResponse
impl Send for GetCurrentValidatorsResponse
impl Sync for GetCurrentValidatorsResponse
impl Unpin for GetCurrentValidatorsResponse
impl UnwindSafe for GetCurrentValidatorsResponse
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