pub struct RequestForMinerListParams {
pub algo: String,
pub user_name: String,
pub page_index: Option<i64>,
pub sort: Option<i64>,
pub sort_column: Option<i64>,
pub worker_status: Option<i64>,
pub recv_window: Option<i64>,
}Expand description
Request parameters for the [request_for_miner_list] operation.
This struct holds all of the inputs you can pass when calling
request_for_miner_list.
Fields§
§algo: StringAlgorithm
This field is **required.
user_name: StringMining account
This field is **required.
page_index: Option<i64>Page number, starting from 1.
This field is **optional.
sort: Option<i64>Sort order. 0 for ascending, 1 for descending.
This field is **optional.
sort_column: Option<i64>Sort by: 1 miner name, 2 real-time hashrate, 3 daily average hashrate, 4 real-time rejection rate, 5 last submission time
This field is **optional.
worker_status: Option<i64>Miner status. 0 all, 1 valid, 2 invalid, 3 failure.
This field is **optional.
recv_window: Option<i64>Request validity window in milliseconds.
This field is **optional.
Implementations§
Source§impl RequestForMinerListParams
impl RequestForMinerListParams
Sourcepub fn builder(
algo: String,
user_name: String,
) -> RequestForMinerListParamsBuilder
pub fn builder( algo: String, user_name: String, ) -> RequestForMinerListParamsBuilder
Create a builder for [request_for_miner_list].
Required parameters:
algo— Algorithmuser_name— Mining account
Trait Implementations§
Source§impl Clone for RequestForMinerListParams
impl Clone for RequestForMinerListParams
Source§fn clone(&self) -> RequestForMinerListParams
fn clone(&self) -> RequestForMinerListParams
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 RequestForMinerListParams
impl Debug for RequestForMinerListParams
Source§impl<'de> Deserialize<'de> for RequestForMinerListParams
impl<'de> Deserialize<'de> for RequestForMinerListParams
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
Auto Trait Implementations§
impl Freeze for RequestForMinerListParams
impl RefUnwindSafe for RequestForMinerListParams
impl Send for RequestForMinerListParams
impl Sync for RequestForMinerListParams
impl Unpin for RequestForMinerListParams
impl UnsafeUnpin for RequestForMinerListParams
impl UnwindSafe for RequestForMinerListParams
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