pub struct GetBoostRewardsHistoryParamsBuilder { /* private fields */ }Expand description
Builder for GetBoostRewardsHistoryParams.
Implementations§
Source§impl GetBoostRewardsHistoryParamsBuilder
impl GetBoostRewardsHistoryParamsBuilder
Sourcepub fn type<VALUE: Into<String>>(self, value: VALUE) -> Self
pub fn type<VALUE: Into<String>>(self, value: VALUE) -> Self
“CLAIM”, “DISTRIBUTE”, default “CLAIM”
This field is **required.
Sourcepub fn start_time<VALUE: Into<Option<i64>>>(self, value: VALUE) -> Self
pub fn start_time<VALUE: Into<Option<i64>>>(self, value: VALUE) -> Self
The start_time parameter.
This field is **optional.
Sourcepub fn end_time<VALUE: Into<Option<i64>>>(self, value: VALUE) -> Self
pub fn end_time<VALUE: Into<Option<i64>>>(self, value: VALUE) -> Self
The end_time parameter.
This field is **optional.
Sourcepub fn current<VALUE: Into<Option<i64>>>(self, value: VALUE) -> Self
pub fn current<VALUE: Into<Option<i64>>>(self, value: VALUE) -> Self
Currently querying page. Start from 1. Default:1
This field is **optional.
Sourcepub fn size<VALUE: Into<Option<i64>>>(self, value: VALUE) -> Self
pub fn size<VALUE: Into<Option<i64>>>(self, value: VALUE) -> Self
Default:10, Max:100
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<GetBoostRewardsHistoryParams, ParamBuildError>
pub fn build(self) -> Result<GetBoostRewardsHistoryParams, ParamBuildError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GetBoostRewardsHistoryParamsBuilder
impl RefUnwindSafe for GetBoostRewardsHistoryParamsBuilder
impl Send for GetBoostRewardsHistoryParamsBuilder
impl Sync for GetBoostRewardsHistoryParamsBuilder
impl Unpin for GetBoostRewardsHistoryParamsBuilder
impl UnsafeUnpin for GetBoostRewardsHistoryParamsBuilder
impl UnwindSafe for GetBoostRewardsHistoryParamsBuilder
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