pub fn release(&mut self, amount: f64) -> Result<()> {
        if self.held_balance < amount {
            return Err(Error::InssuficientFunds);
        }
        self.held_balance -= amount;
        self.available_balance += amount;
        Ok(())
    }
/// Put funds from holding back into the available balance
Put funds from holding back into the available balance
Put funds from holding back into the available balance
pub fn release(&mut self, amount: f64) -> Result<()> {
        if self.held_balance < amount {
            return Err(Error::InssuficientFunds);
        }
        self.held_balance -= amount;
        self.available_balance += amount;
        Ok(())
    }
pub fn release ( & mut self , amount : f64 ) -> Result < ( ) > { if self . held_balance < amount { return Err ( Error :: InssuficientFunds ) ; } self . held_balance -= amount ; self . available_balance += amount ; Ok ( ( ) ) }
Put funds from holding back into the available balance
Put funds from holding back into the available balance
&mut self
amount
f64
&mut self
amount
f64