pub struct StakingClient { /* private fields */ }
Implementations§
Source§impl StakingClient
impl StakingClient
pub fn new(api_options: DfnsApiClientOptions) -> Self
pub async fn create_stake( &self, request: CreateStakeRequest, ) -> Result<CreateStakeResponse, DfnsError>
pub async fn create_stake_action( &self, request: CreateStakeActionRequest, ) -> Result<CreateStakeActionResponse, DfnsError>
pub async fn get_stake_rewards( &self, request: GetStakeRewardsRequest, ) -> Result<GetStakeRewardsResponse, DfnsError>
pub async fn list_stake_actions( &self, request: Option<ListStakeActionsRequest>, ) -> Result<ListStakeActionsResponse, DfnsError>
pub async fn list_stakes( &self, request: Option<ListStakesRequest>, ) -> Result<ListStakesResponse, DfnsError>
Trait Implementations§
Source§impl Clone for StakingClient
impl Clone for StakingClient
Source§fn clone(&self) -> StakingClient
fn clone(&self) -> StakingClient
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 moreSource§impl Debug for StakingClient
impl Debug for StakingClient
Source§impl PartialEq for StakingClient
impl PartialEq for StakingClient
impl StructuralPartialEq for StakingClient
Auto Trait Implementations§
impl Freeze for StakingClient
impl !RefUnwindSafe for StakingClient
impl Send for StakingClient
impl Sync for StakingClient
impl Unpin for StakingClient
impl !UnwindSafe for StakingClient
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