pub fn push(&mut self, t: &Transaction) {
        match self.transactions.get(&t.id) {
            Some(_) => (), // silently fail
            None => {
                self.transactions.insert(t.id, t.clone());
            }
        };
    }
/// Add a new transaction to the list
Add a new transaction to the list
Add a new transaction to the list
pub fn push(&mut self, t: &Transaction) {
        match self.transactions.get(&t.id) {
            Some(_) => (), // silently fail
            None => {
                self.transactions.insert(t.id, t.clone());
            }
        };
    }
pub fn push ( & mut self , t : & Transaction ) { match self . transactions . get ( & t . id ) { Some ( _ ) => ( ) , // silently fail None => { self . transactions . insert ( t . id , t . clone ( ) ) ; } } ; }
Add a new transaction to the list
Add a new transaction to the list
&mut self
t
&Transaction
&mut self
t
&Transaction