pub struct RoundMinersResponse {
pub round_id: u64,
pub miners: Vec<RoundMiner>,
pub authority: Option<RoundMiner>,
pub authority_rank: Option<u64>,
}Expand description
Response type for listing miners in a round.
Fields§
§round_id: u64§miners: Vec<RoundMiner>Miners sorted by total_deployed descending, paginated.
The pinned authority’s data (included regardless of pagination rank). Null if no authority was provided or they didn’t deploy in this round.
The pinned authority’s 1-based rank by total_deployed descending. Null if no authority was provided or they didn’t deploy in this round.
Trait Implementations§
Source§impl Clone for RoundMinersResponse
impl Clone for RoundMinersResponse
Source§fn clone(&self) -> RoundMinersResponse
fn clone(&self) -> RoundMinersResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RoundMinersResponse
impl Debug for RoundMinersResponse
Source§impl<'de> Deserialize<'de> for RoundMinersResponse
impl<'de> Deserialize<'de> for RoundMinersResponse
Source§fn 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
Source§impl PartialEq for RoundMinersResponse
impl PartialEq for RoundMinersResponse
Source§fn eq(&self, other: &RoundMinersResponse) -> bool
fn eq(&self, other: &RoundMinersResponse) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RoundMinersResponse
impl Serialize for RoundMinersResponse
impl StructuralPartialEq for RoundMinersResponse
Auto Trait Implementations§
impl Freeze for RoundMinersResponse
impl RefUnwindSafe for RoundMinersResponse
impl Send for RoundMinersResponse
impl Sync for RoundMinersResponse
impl Unpin for RoundMinersResponse
impl UnsafeUnpin for RoundMinersResponse
impl UnwindSafe for RoundMinersResponse
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more