pub struct RequestForMinerListParamsBuilder { /* private fields */ }Expand description
Builder for RequestForMinerListParams.
Implementations§
Source§impl RequestForMinerListParamsBuilder
impl RequestForMinerListParamsBuilder
Sourcepub fn algo<VALUE: Into<String>>(self, value: VALUE) -> Self
pub fn algo<VALUE: Into<String>>(self, value: VALUE) -> Self
Algorithm(sha256) sha256
This field is **required.
Sourcepub fn user_name<VALUE: Into<String>>(self, value: VALUE) -> Self
pub fn user_name<VALUE: Into<String>>(self, value: VALUE) -> Self
Mining account test
This field is **required.
Sourcepub fn page_index<VALUE: Into<Option<i64>>>(self, value: VALUE) -> Self
pub fn page_index<VALUE: Into<Option<i64>>>(self, value: VALUE) -> Self
Page number, empty default first page, starting from 1
This field is **optional.
Sourcepub fn sort<VALUE: Into<Option<i64>>>(self, value: VALUE) -> Self
pub fn sort<VALUE: Into<Option<i64>>>(self, value: VALUE) -> Self
sort sequence(default=0)0 positive sequence,1 negative sequence
This field is **optional.
Sourcepub fn sort_column<VALUE: Into<Option<i64>>>(self, value: VALUE) -> Self
pub fn sort_column<VALUE: Into<Option<i64>>>(self, value: VALUE) -> Self
Sort by( default 1):
1: miner name,
2: real-time computing power,
3: daily average computing power,
4: real-time rejection rate,
5: last submission time
This field is **optional.
Sourcepub fn worker_status<VALUE: Into<Option<i64>>>(self, value: VALUE) -> Self
pub fn worker_status<VALUE: Into<Option<i64>>>(self, value: VALUE) -> Self
miners status(default=0),0 all,1 valid,2 invalid,3 failure
This field is **optional.
Sourcepub fn recv_window<VALUE: Into<Option<i64>>>(self, value: VALUE) -> Self
pub fn recv_window<VALUE: Into<Option<i64>>>(self, value: VALUE) -> Self
The recv_window parameter.
This field is **optional.
Sourcepub fn build(self) -> Result<RequestForMinerListParams, ParamBuildError>
pub fn build(self) -> Result<RequestForMinerListParams, ParamBuildError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RequestForMinerListParamsBuilder
impl RefUnwindSafe for RequestForMinerListParamsBuilder
impl Send for RequestForMinerListParamsBuilder
impl Sync for RequestForMinerListParamsBuilder
impl Unpin for RequestForMinerListParamsBuilder
impl UnsafeUnpin for RequestForMinerListParamsBuilder
impl UnwindSafe for RequestForMinerListParamsBuilder
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