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>,