Skip to content

Project Overview

Daniel Cortes edited this page Jul 19, 2024 · 17 revisions

So this code represents a bank thats going to hold on to many different accounts owned by a separate person and each account will have some data in it, so we will have a balance, acount_number and holder. We can have as many accounts as we want and thats it.

The real goal is to verify that I know about the different systems in Rust.

We will make a struct to represent the bank and another to represent the account.

You can see that in the tables below:

The first table at the top describes some different functions and methods we want to tie to our bank struct. So for the different functions I put a description of what I want to do. We are going to decide whether each of these is going to be a method or an associated function. We wil have to decide on a name, Args if any, and what it returns. Same thing for account as well.

Thats the general idea of this project.