pub struct ClaimRewardsParams {
pub chain_descriptor: String,
pub claim_rewards_request: ClaimRewardsRequest,
pub idempotency_key: Option<String>,
}
Expand description
struct for passing parameters to the method [claim_rewards
]
Fields§
§chain_descriptor: String
The protocol identifier (e.g. "MATIC"/"SOL") to use
claim_rewards_request: ClaimRewardsRequest
§idempotency_key: Option<String>
A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.
Implementations§
Source§impl ClaimRewardsParams
impl ClaimRewardsParams
Sourcepub fn builder() -> ClaimRewardsParamsBuilder
pub fn builder() -> ClaimRewardsParamsBuilder
Create an instance of ClaimRewardsParams
using the builder syntax
Trait Implementations§
Source§impl Clone for ClaimRewardsParams
impl Clone for ClaimRewardsParams
Source§fn clone(&self) -> ClaimRewardsParams
fn clone(&self) -> ClaimRewardsParams
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for ClaimRewardsParams
impl RefUnwindSafe for ClaimRewardsParams
impl Send for ClaimRewardsParams
impl Sync for ClaimRewardsParams
impl Unpin for ClaimRewardsParams
impl UnwindSafe for ClaimRewardsParams
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