pub async fn update_offer(&self, offer: &mut response::trade_offer::TradeOffer) -> Result<(), Error> {
        let updated = self.api.get_trade_offer(offer.tradeofferid).await?;
        
        offer.tradeofferid = updated.tradeofferid;
        offer.tradeid = updated.tradeid;
        offer.trade_offer_state = updated.trade_offer_state;
        offer.confirmation_method = updated.confirmation_method;
        offer.escrow_end_date = updated.escrow_end_date;
        offer.time_created = updated.time_created;
        offer.time_updated = updated.time_updated;
        offer.expiration_time = updated.expiration_time;
        
        Ok(())
    }
/// Updates the offer to the most recent state against the API.
Updates the offer to the most recent state against the API.
Updates the offer to the most recent state against the API .
pub async fn update_offer(&self, offer: &mut response::trade_offer::TradeOffer) -> Result<(), Error> {
        let updated = self.api.get_trade_offer(offer.tradeofferid).await?;
        offer.tradeofferid = updated.tradeofferid;
        offer.tradeid = updated.tradeid;
        offer.trade_offer_state = updated.trade_offer_state;
        offer.confirmation_method = updated.confirmation_method;
        offer.escrow_end_date = updated.escrow_end_date;
        offer.time_created = updated.time_created;
        offer.time_updated = updated.time_updated;
        offer.expiration_time = updated.expiration_time;
        Ok(())
    }
pub async fn update_offer ( & self , offer : & mut response :: trade_offer :: TradeOffer ) -> Result < ( ) , Error > { let updated = self . api . get_trade_offer ( offer . tradeofferid ) . await ? ; offer . tradeofferid = updated . tradeofferid ; offer . tradeid = updated . tradeid ; offer . trade_offer_state = updated . trade_offer_state ; offer . confirmation_method = updated . confirmation_method ; offer . escrow_end_date = updated . escrow_end_date ; offer . time_created = updated . time_created ; offer . time_updated = updated . time_updated ; offer . expiration_time = updated . expiration_time ; Ok ( ( ) ) }
Updates the offer to the most recent state against the API.
Updates the offer to the most recent state against the API .
&self
offer
&mut response::trade_offer::TradeOffer
&self
offer
&mut response::trade_offer::TradeOffer