aboutsummaryrefslogtreecommitdiff
path: root/src/models
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@vidhukant.com>2023-08-30 15:15:31 +0530
committerVidhu Kant Sharma <vidhukant@vidhukant.com>2023-08-30 15:15:31 +0530
commit0d7d20829623b14c8ea5284bc24e63f7c31d61b7 (patch)
treed918be383306e88e659162f5bd5fc8249de885b6 /src/models
parenta1b3b7fb92fae98e9f6df7b9d4e3e3b4ff6b1a44 (diff)
renamed client to customer
Diffstat (limited to 'src/models')
-rw-r--r--src/models/customer.rs (renamed from src/models/client.rs)8
-rw-r--r--src/models/mod.rs2
2 files changed, 5 insertions, 5 deletions
diff --git a/src/models/client.rs b/src/models/customer.rs
index a76af70..65bd700 100644
--- a/src/models/client.rs
+++ b/src/models/customer.rs
@@ -56,7 +56,7 @@ impl Contact {
}
#[derive(Clone, PartialEq)]
-pub struct Client {
+pub struct Customer {
pub id: u64,
pub name: String,
pub contact: Contact,
@@ -65,9 +65,9 @@ pub struct Client {
pub shipping_addresses: Vec<Address>,
}
-impl Client {
- pub fn new() -> Client {
- Client {
+impl Customer {
+ pub fn new() -> Customer {
+ Customer {
id: 0,
name: String::new(),
contact: Contact::new(),
diff --git a/src/models/mod.rs b/src/models/mod.rs
index 514c03d..74c6b60 100644
--- a/src/models/mod.rs
+++ b/src/models/mod.rs
@@ -15,4 +15,4 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
-pub mod client;
+pub mod customer;