changelog shortlog graph tags branches changeset files revisions annotate raw help

Mercurial > core / rust/lib/obj/src/object/contact.rs

changeset 698: 96958d3eb5b0
parent: c7165d93a9eb
author: Richard Westhaver <ellis@rwest.io>
date: Fri, 04 Oct 2024 22:04:59 -0400
permissions: -rw-r--r--
description: fixes
1 //! obj::person
2 //!
3 //! Object types for people
4 use crate::Objective;
5 
6 use chrono::{DateTime, Utc};
7 use serde::{Deserialize, Serialize};
8 
9 /// Person object type
10 ///
11 /// Contains information about a specific person.
12 #[derive(Serialize, Deserialize, Debug, Hash)]
13 pub struct Contact {
14  name: String,
15  email: String,
16  phone: u64,
17  home: String,
18  work: String,
19  born: DateTime<Utc>,
20 }
21 
22 impl Objective for Contact {}