diff options
author | Yigit Sever | 2022-04-16 17:36:07 +0300 |
---|---|---|
committer | Yigit Sever | 2022-04-16 17:36:07 +0300 |
commit | 96d34952c1fb2cf096b6c907feada60b0db27a8f (patch) | |
tree | e40d258be3b897302aa5d08b81a4a63c09a05c11 /examples/serdeser.rs | |
parent | f12685e32689b620d6096ec91ba3a3f495342925 (diff) | |
download | gradecoin-96d34952c1fb2cf096b6c907feada60b0db27a8f.tar.gz gradecoin-96d34952c1fb2cf096b6c907feada60b0db27a8f.tar.bz2 gradecoin-96d34952c1fb2cf096b6c907feada60b0db27a8f.zip |
remove examples
Diffstat (limited to 'examples/serdeser.rs')
-rw-r--r-- | examples/serdeser.rs | 16 |
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 @@ | |||
1 | use gradecoin::schema::Transaction; | ||
2 | use serde_json; | ||
3 | |||
4 | pub 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 | } | ||