diff options
| author | Joe Carstairs <me@joeac.net> | 2024-11-17 12:16:19 +0000 |
|---|---|---|
| committer | Joe Carstairs <me@joeac.net> | 2024-11-17 12:20:48 +0000 |
| commit | 99fa72e2b9d572e00cd232bd55a3fa24722c3134 (patch) | |
| tree | 6b50ce600fffa07a0c21b7f14d2447fe5ac3c2ed /rust/schist_fakes/src/account.rs | |
| parent | 10f071447594f2bdcec84a461df9ad648f71f44b (diff) | |
Refactors workspace
Diffstat (limited to 'rust/schist_fakes/src/account.rs')
| -rw-r--r-- | rust/schist_fakes/src/account.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/rust/schist_fakes/src/account.rs b/rust/schist_fakes/src/account.rs new file mode 100644 index 0000000..1cee16e --- /dev/null +++ b/rust/schist_fakes/src/account.rs @@ -0,0 +1,11 @@ +use schist_models::{account::Account, datetime_utc::DatetimeUtc}; +use schist_traits::nowlike::Nowlike; + +pub fn make_fake_account(id: i32) -> Account { + Account { + id, + name: String::from("Joe Bloggs"), + opening_balance: 0, + opening_date: DatetimeUtc::now(), + } +} |
