pub struct EthStaking<'a, T> { /* private fields */ }Expand description
Accessor for ETH staking endpoints.
Implementations§
Source§impl<T: Transport> EthStaking<'_, T>
impl<T: Transport> EthStaking<'_, T>
Sourcepub async fn product_info(&self) -> Result<Vec<StakingProductInfo>, Error>
pub async fn product_info(&self) -> Result<Vec<StakingProductInfo>, Error>
Sourcepub async fn cancel_redeem(
&self,
ord_id: &str,
) -> Result<Vec<CancelRedeem>, Error>
pub async fn cancel_redeem( &self, ord_id: &str, ) -> Result<Vec<CancelRedeem>, Error>
Sourcepub async fn purchase_redeem_history(
&self,
request: &FinanceHistoryRequest,
) -> Result<Vec<StakingHistory>, Error>
pub async fn purchase_redeem_history( &self, request: &FinanceHistoryRequest, ) -> Result<Vec<StakingHistory>, Error>
Retrieve ETH staking purchase/redeem history.
§Errors
Returns authentication, API, transport, or decode errors.
Sourcepub async fn apy_history(
&self,
days: &str,
) -> Result<Vec<StakingApyHistory>, Error>
pub async fn apy_history( &self, days: &str, ) -> Result<Vec<StakingApyHistory>, Error>
Auto Trait Implementations§
impl<'a, T> Freeze for EthStaking<'a, T>
impl<'a, T> RefUnwindSafe for EthStaking<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for EthStaking<'a, T>where
T: Sync,
impl<'a, T> Sync for EthStaking<'a, T>where
T: Sync,
impl<'a, T> Unpin for EthStaking<'a, T>
impl<'a, T> UnsafeUnpin for EthStaking<'a, T>
impl<'a, T> UnwindSafe for EthStaking<'a, T>where
T: RefUnwindSafe,
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