pub struct EarningsListParams {
pub algo: String,
pub user_name: String,
pub coin: Option<String>,
pub start_date: Option<i64>,
pub end_date: Option<i64>,
pub page_index: Option<i64>,
pub page_size: Option<i64>,
pub recv_window: Option<i64>,
}Expand description
Request parameters for the [earnings_list] operation.
This struct holds all of the inputs you can pass when calling
earnings_list.
Fields§
§algo: StringAlgorithm name.
This field is **required.
user_name: StringMining account.
This field is **required.
coin: Option<String>Coin name
This field is **optional.
start_date: Option<i64>Search start time in milliseconds.
This field is **optional.
end_date: Option<i64>Search end time in milliseconds.
This field is **optional.
page_index: Option<i64>Page number, starting from 1.
This field is **optional.
page_size: Option<i64>Number of rows per page.
This field is **optional.
recv_window: Option<i64>Request validity window in milliseconds.
This field is **optional.
Implementations§
Source§impl EarningsListParams
impl EarningsListParams
Sourcepub fn builder(algo: String, user_name: String) -> EarningsListParamsBuilder
pub fn builder(algo: String, user_name: String) -> EarningsListParamsBuilder
Create a builder for [earnings_list].
Required parameters:
algo— Algorithm name.user_name— Mining account.
Trait Implementations§
Source§impl Clone for EarningsListParams
impl Clone for EarningsListParams
Source§fn clone(&self) -> EarningsListParams
fn clone(&self) -> EarningsListParams
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 EarningsListParams
impl Debug for EarningsListParams
Source§impl<'de> Deserialize<'de> for EarningsListParams
impl<'de> Deserialize<'de> for EarningsListParams
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 EarningsListParams
impl RefUnwindSafe for EarningsListParams
impl Send for EarningsListParams
impl Sync for EarningsListParams
impl Unpin for EarningsListParams
impl UnsafeUnpin for EarningsListParams
impl UnwindSafe for EarningsListParams
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