From 8321416df336e7f476ff04d3d9d63a298882152e Mon Sep 17 00:00:00 2001 From: PARK BYUNG JUN Date: Fri, 15 Jul 2022 06:36:05 +0000 Subject: [PATCH] serde_json is added --- Cargo.toml | 1 + src/models/core/network.rs | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index e9b0df9..1f17ac7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,4 +11,5 @@ path = "./src/lib.rs" [dependencies] prost = "0.10" serde = { version = "1.0", features = ["derive"] } +serde_json = { version = "1" } const_format = "0.2" diff --git a/src/models/core/network.rs b/src/models/core/network.rs index 96c9abd..37b72aa 100644 --- a/src/models/core/network.rs +++ b/src/models/core/network.rs @@ -1,4 +1,6 @@ -#[derive(Clone, PartialEq, ::prost::Message)] +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Serialize, Deserialize, PartialEq, ::prost::Message)] pub struct Client { #[prost(string, optional, tag = "1")] pub site_url: ::core::option::Option<::prost::alloc::string::String>,