serde_json is added

This commit is contained in:
병준 박 2022-07-15 06:36:05 +00:00
parent a572e8f45d
commit 8321416df3
2 changed files with 4 additions and 1 deletions

View File

@ -11,4 +11,5 @@ path = "./src/lib.rs"
[dependencies] [dependencies]
prost = "0.10" prost = "0.10"
serde = { version = "1.0", features = ["derive"] } serde = { version = "1.0", features = ["derive"] }
serde_json = { version = "1" }
const_format = "0.2" const_format = "0.2"

View File

@ -1,4 +1,6 @@
#[derive(Clone, PartialEq, ::prost::Message)] use serde::{Deserialize, Serialize};
#[derive(Clone, Serialize, Deserialize, PartialEq, ::prost::Message)]
pub struct Client { pub struct Client {
#[prost(string, optional, tag = "1")] #[prost(string, optional, tag = "1")]
pub site_url: ::core::option::Option<::prost::alloc::string::String>, pub site_url: ::core::option::Option<::prost::alloc::string::String>,