add struct

This commit is contained in:
P0lunin 2019-09-03 21:14:19 +03:00
parent ff2285890f
commit a17f3129a3
2 changed files with 10 additions and 0 deletions

View file

@ -1,3 +1,6 @@
use serde::Deserialization;
#[derive(Debug, Deserialization)]
struct Contact { struct Contact {
phone_number: String, phone_number: String,
first_name: String, first_name: String,

View file

@ -0,0 +1,7 @@
use serde::{Serialization, Deserialization};
#[derive(Debug, Serialization, Deserialization)]
struct Location {
longitude: f64,
latitude: f64,
}