pub struct Savings<'a, T> { /* private fields */ }Expand description
Accessor for Savings endpoints.
Implementations§
Source§impl<T: Transport> Savings<'_, T>
impl<T: Transport> Savings<'_, T>
Sourcepub async fn get_saving_balance(
&self,
ccy: Option<&str>,
) -> Result<Vec<SavingBalance>, Error>
pub async fn get_saving_balance( &self, ccy: Option<&str>, ) -> Result<Vec<SavingBalance>, Error>
Sourcepub async fn purchase_redemption(
&self,
request: &SavingsPurchaseRedemptionRequest,
) -> Result<Vec<SavingsPurchaseRedemptionResult>, Error>
pub async fn purchase_redemption( &self, request: &SavingsPurchaseRedemptionRequest, ) -> Result<Vec<SavingsPurchaseRedemptionResult>, Error>
Sourcepub async fn set_lending_rate(
&self,
ccy: &str,
rate: &str,
) -> Result<Vec<SetLendingRateResult>, Error>
pub async fn set_lending_rate( &self, ccy: &str, rate: &str, ) -> Result<Vec<SetLendingRateResult>, Error>
Sourcepub async fn get_lending_history(
&self,
request: &FinanceHistoryRequest,
) -> Result<Vec<LendingHistory>, Error>
pub async fn get_lending_history( &self, request: &FinanceHistoryRequest, ) -> Result<Vec<LendingHistory>, Error>
Sourcepub async fn get_public_borrow_history(
&self,
request: &FinanceHistoryRequest,
) -> Result<Vec<PublicBorrowHistory>, Error>
pub async fn get_public_borrow_history( &self, request: &FinanceHistoryRequest, ) -> Result<Vec<PublicBorrowHistory>, Error>
Sourcepub async fn get_public_borrow_info(
&self,
ccy: Option<&str>,
) -> Result<Vec<PublicBorrowInfo>, Error>
pub async fn get_public_borrow_info( &self, ccy: Option<&str>, ) -> Result<Vec<PublicBorrowInfo>, Error>
Auto Trait Implementations§
impl<'a, T> Freeze for Savings<'a, T>
impl<'a, T> RefUnwindSafe for Savings<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for Savings<'a, T>where
T: Sync,
impl<'a, T> Sync for Savings<'a, T>where
T: Sync,
impl<'a, T> Unpin for Savings<'a, T>
impl<'a, T> UnsafeUnpin for Savings<'a, T>
impl<'a, T> UnwindSafe for Savings<'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