aboutsummaryrefslogtreecommitdiffstats
path: root/examples/serdeser.rs
diff options
context:
space:
mode:
authorYigit Sever2022-04-16 17:36:07 +0300
committerYigit Sever2022-04-16 17:36:07 +0300
commit96d34952c1fb2cf096b6c907feada60b0db27a8f (patch)
treee40d258be3b897302aa5d08b81a4a63c09a05c11 /examples/serdeser.rs
parentf12685e32689b620d6096ec91ba3a3f495342925 (diff)
downloadgradecoin-96d34952c1fb2cf096b6c907feada60b0db27a8f.tar.gz
gradecoin-96d34952c1fb2cf096b6c907feada60b0db27a8f.tar.bz2
gradecoin-96d34952c1fb2cf096b6c907feada60b0db27a8f.zip
remove examples
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}