finished making fn for entities
This commit is contained in:
parent
6fda1192fa
commit
83281e9199
@ -1,4 +1,6 @@
|
||||
use std::convert::TryFrom;
|
||||
|
||||
#[derive(Clone)]
|
||||
pub struct Account {
|
||||
id: i64,
|
||||
name: String,
|
||||
|
||||
@ -49,18 +49,19 @@ impl Transaction {
|
||||
}
|
||||
|
||||
pub fn get_desc(&self) -> String {
|
||||
return self.description;
|
||||
return self.description.clone();
|
||||
}
|
||||
|
||||
pub fn get_account(&self) -> Account {
|
||||
return self.account;
|
||||
return self.account.clone();
|
||||
}
|
||||
|
||||
pub fn get_type(&self) -> TransactionType {
|
||||
return self.tr_type;
|
||||
return self.tr_type.clone();
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Clone)]
|
||||
pub struct TransactionType {
|
||||
id: i64,
|
||||
description: String,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user