aboutsummaryrefslogtreecommitdiffstats
path: root/examples/serdeser.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/serdeser.rs')
-rw-r--r--examples/serdeser.rs16
1 files changed, 0 insertions, 16 deletions
diff --git a/examples/serdeser.rs b/examples/serdeser.rs
deleted file mode 100644
index 4fdfdc2..0000000
--- a/examples/serdeser.rs
+++ /dev/null
@@ -1,16 +0,0 @@
1use gradecoin::schema::Transaction;
2use serde_json;
3
4pub fn main() {
5
6 let tx = Transaction {
7 source: "fingerprint_of_some_guy".to_owned(),
8 target: "31415926535897932384626433832795028841971693993751058209749445923".to_owned(),
9 amount: 2,
10 timestamp: chrono::NaiveDate::from_ymd(2021, 04, 13).and_hms(20, 55, 30),
11 };
12
13 let tx_string = serde_json::to_string(&tx).unwrap();
14
15 println!("{}", &tx_string);
16}