From 7de6f9f25288966968e0fbfe2645da8f4593e6ee Mon Sep 17 00:00:00 2001 From: Mr-Andersen Date: Thu, 12 Sep 2019 16:51:24 +0300 Subject: [PATCH] `pub` fixes --- src/core/types/contact.rs | 6 ++---- src/core/types/location.rs | 4 +--- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/src/core/types/contact.rs b/src/core/types/contact.rs index 7a5840ee..83a1d81d 100644 --- a/src/core/types/contact.rs +++ b/src/core/types/contact.rs @@ -1,8 +1,6 @@ -use serde::Deserialization; - -#[derive(Debug, Deserialization, Clone)] +#[derive(Clone, Debug, Deserialize, Eq, Hash, PartialEq, Serialize)] /// This object represents a phone contact. -struct Contact { +pub struct Contact { /// Contact's phone number pub phone_number: String, /// Contact's first name diff --git a/src/core/types/location.rs b/src/core/types/location.rs index 3fd0eeb9..abaf63c8 100644 --- a/src/core/types/location.rs +++ b/src/core/types/location.rs @@ -1,8 +1,6 @@ -use serde::{Deserialization, Serialization}; - #[derive(Debug, Serialization, Deserialization, Clone)] /// This object represents a point on the map. -struct Location { +pub struct Location { /// Longitude as defined by sender pub longitude: f64, /// Latitude as defined by sender