plugin show signature (#6126)

* plugin show signature

* remove expect from macro

* use fold to create string
This commit is contained in:
Fernando Herrera
2022-07-26 14:47:54 +01:00
committed by GitHub
parent b12a3dd0e5
commit 6b4e577032
3 changed files with 84 additions and 0 deletions

View File

@@ -13,6 +13,10 @@ use crate::{plugin::PluginEncoder, protocol::PluginResponse};
pub struct CapnpSerializer;
impl PluginEncoder for CapnpSerializer {
fn name(&self) -> &str {
"Capnp Serializer"
}
fn encode_call(
&self,
plugin_call: &crate::protocol::PluginCall,

View File

@@ -6,6 +6,10 @@ use crate::{plugin::PluginEncoder, protocol::PluginResponse};
pub struct JsonSerializer;
impl PluginEncoder for JsonSerializer {
fn name(&self) -> &str {
"Json Serializer"
}
fn encode_call(
&self,
plugin_call: &crate::protocol::PluginCall,