pub struct SolStaking<'a, T> { /* private fields */ }Expand description
Accessor for SOL staking endpoints.
Implementations§
Source§impl<T: Transport> SolStaking<'_, T>
impl<T: Transport> SolStaking<'_, T>
Sourcepub async fn product_info(&self) -> Result<StakingProductInfo, Error>
pub async fn product_info(&self) -> Result<StakingProductInfo, 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 SOL 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 SolStaking<'a, T>
impl<'a, T> RefUnwindSafe for SolStaking<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for SolStaking<'a, T>where
T: Sync,
impl<'a, T> Sync for SolStaking<'a, T>where
T: Sync,
impl<'a, T> Unpin for SolStaking<'a, T>
impl<'a, T> UnsafeUnpin for SolStaking<'a, T>
impl<'a, T> UnwindSafe for SolStaking<'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