pub async fn send_settlement(
        &self,
        id: Uuid,
        engine_url: Url,
        amount: u64,
        asset_scale: u8,
    ) -> Response {
        FutureRetry::new(
            move || self.send_settlement_once(id, engine_url.clone(), amount, asset_scale),
            RequestErrorHandler::new(self.max_retries),
        )
        .await
        .map(|(response, _attempts)| response)
        .map_err(|(err, _attempts)| err)
    }
/// Sends an idempotent settlement request to the engine (will retry if it fails)
/// This is done by sending a POST to /accounts/:id/settlements with the provided `amount` and `asset_scale`
/// as the request's body
Sends an idempotent settlement request to the engine (will retry if it fails)
This is done by sending a POST to /accounts/:id/settlements with the provided `amount` and `asset_scale`
as the request's body
Sends an idempotent settlement request to the engine ( will retry if it fails ) This is done by sending a POST to / accounts / : id / settlements with the provided ` amount ` and ` asset_scale ` as the request ' s body
pub async fn send_settlement(
        &self,
        id: Uuid,
        engine_url: Url,
        amount: u64,
        asset_scale: u8,
    ) -> Response {
        FutureRetry::new(
            move || self.send_settlement_once(id, engine_url.clone(), amount, asset_scale),
            RequestErrorHandler::new(self.max_retries),
        )
        .await
        .map(|(response, _attempts)| response)
        .map_err(|(err, _attempts)| err)
    }
pub async fn send_settlement ( & self , id : Uuid , engine_url : Url , amount : u64 , asset_scale : u8 , ) -> Response { FutureRetry :: new ( move | | self . send_settlement_once ( id , engine_url . clone ( ) , amount , asset_scale ) , RequestErrorHandler :: new ( self . max_retries ) , ) . await . map ( | ( response , _attempts ) | response ) . map_err ( | ( err , _attempts ) | err ) }
Sends an idempotent settlement request to the engine (will retry if it fails)
This is done by sending a POST to /accounts/:id/settlements with the provided `amount` and `asset_scale`
as the request's body
Sends an idempotent settlement request to the engine ( will retry if it fails ) This is done by sending a POST to / accounts / : id / settlements with the provided ` amount ` and ` asset_scale ` as the request ' s body
&self
id
Uuid
engine_url
Url
amount
u64
asset_scale
u8
&self
id
Uuid
engine_url
Url
amount
u64
asset_scale
u8