pub struct MiningAccountEarningParamsBuilder { /* private fields */ }Expand description
Builder for MiningAccountEarningParams.
Implementations§
Source§impl MiningAccountEarningParamsBuilder
impl MiningAccountEarningParamsBuilder
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 start_date<VALUE: Into<Option<i64>>>(self, value: VALUE) -> Self
pub fn start_date<VALUE: Into<Option<i64>>>(self, value: VALUE) -> Self
Millisecond timestamp
This field is **optional.
Sourcepub fn end_date<VALUE: Into<Option<i64>>>(self, value: VALUE) -> Self
pub fn end_date<VALUE: Into<Option<i64>>>(self, value: VALUE) -> Self
Millisecond timestamp
This field is **optional.
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 page_size<VALUE: Into<Option<i64>>>(self, value: VALUE) -> Self
pub fn page_size<VALUE: Into<Option<i64>>>(self, value: VALUE) -> Self
Min 10,Max 200
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<MiningAccountEarningParams, ParamBuildError>
pub fn build(self) -> Result<MiningAccountEarningParams, ParamBuildError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MiningAccountEarningParamsBuilder
impl RefUnwindSafe for MiningAccountEarningParamsBuilder
impl Send for MiningAccountEarningParamsBuilder
impl Sync for MiningAccountEarningParamsBuilder
impl Unpin for MiningAccountEarningParamsBuilder
impl UnsafeUnpin for MiningAccountEarningParamsBuilder
impl UnwindSafe for MiningAccountEarningParamsBuilder
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