pub struct BalancesService { /* private fields */ }Implementations§
Source§impl BalancesService
impl BalancesService
pub fn new(ctx: ServiceContext) -> Self
pub async fn list(&self, req: GetBalancesRequest) -> Result<BalancesList>
pub async fn get_balance_history( &self, req: GetBalanceHistoryRequest, ) -> Result<BalanceHistory>
pub async fn get_equity_history( &self, req: GetEquityHistorySeriesRequest, ) -> Result<EquityHistory>
pub async fn list_transfers( &self, req: ListTransfersRequest, ) -> Result<TransfersList>
pub async fn list_holds(&self, req: ListHoldsRequest) -> Result<HoldsList>
Sourcepub async fn subscribe(
&self,
account_id: Option<&str>,
) -> Result<TypedSubscription<AssetBalance>>
pub async fn subscribe( &self, account_id: Option<&str>, ) -> Result<TypedSubscription<AssetBalance>>
Subscribe to private balance updates (requires realtime feature).
Trait Implementations§
Source§impl Clone for BalancesService
impl Clone for BalancesService
Source§fn clone(&self) -> BalancesService
fn clone(&self) -> BalancesService
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 BalancesService
impl !RefUnwindSafe for BalancesService
impl !UnwindSafe for BalancesService
impl Send for BalancesService
impl Sync for BalancesService
impl Unpin for BalancesService
impl UnsafeUnpin for BalancesService
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