mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-22 14:35:36 +01:00
add struct
This commit is contained in:
parent
ff2285890f
commit
a17f3129a3
2 changed files with 10 additions and 0 deletions
|
@ -1,3 +1,6 @@
|
|||
use serde::Deserialization;
|
||||
|
||||
#[derive(Debug, Deserialization)]
|
||||
struct Contact {
|
||||
phone_number: String,
|
||||
first_name: String,
|
||||
|
|
7
src/core/types/location.rs
Normal file
7
src/core/types/location.rs
Normal file
|
@ -0,0 +1,7 @@
|
|||
use serde::{Serialization, Deserialization};
|
||||
|
||||
#[derive(Debug, Serialization, Deserialization)]
|
||||
struct Location {
|
||||
longitude: f64,
|
||||
latitude: f64,
|
||||
}
|
Loading…
Reference in a new issue