pub async fn confirm_offerid(
        &self,
        tradeofferid: TradeOfferId,
    ) -> Result<(), Error> {
        let confirmations = self.get_trade_confirmations().await?;
        let confirmation = confirmations
            .into_iter()
            .find(|confirmation| confirmation.creator == tradeofferid);
        
        if let Some(confirmation) = confirmation {
            self.accept_confirmation(&confirmation).await
        } else {
            Err(Error::NoConfirmationForOffer(tradeofferid))
        }
    }
/// Confirms an trade offer using its ID.
Confirms an trade offer using its ID.
Confirms an trade offer using its ID .
pub async fn confirm_offerid(
        &self,
        tradeofferid: TradeOfferId,
    ) -> Result<(), Error> {
        let confirmations = self.get_trade_confirmations().await?;
        let confirmation = confirmations
            .into_iter()
            .find(|confirmation| confirmation.creator == tradeofferid);
        if let Some(confirmation) = confirmation {
            self.accept_confirmation(&confirmation).await
        } else {
            Err(Error::NoConfirmationForOffer(tradeofferid))
        }
    }
pub async fn confirm_offerid ( & self , tradeofferid : TradeOfferId , ) -> Result < ( ) , Error > { let confirmations = self . get_trade_confirmations ( ) . await ? ; let confirmation = confirmations . into_iter ( ) . find ( | confirmation | confirmation . creator == tradeofferid ) ; if let Some ( confirmation ) = confirmation { self . accept_confirmation ( & confirmation ) . await } else { Err ( Error :: NoConfirmationForOffer ( tradeofferid ) ) } }
Confirms an trade offer using its ID.
Confirms an trade offer using its ID .
&self
tradeofferid
TradeOfferId
&self
tradeofferid
TradeOfferId