Plexor Codec: Serde JSON
plexor-codec-serde-json provides a JSON codec implementation for the Plexor distributed system architecture.
It enables Neurons to serialize and deserialize payloads using the industry-standard serde_json library, making it ideal for human-readable messaging, and debugging.
Features
- Seamless Integration: Implements the
Codectrait forplexor-core. - Type Safety: Leverages Rust's strong typing via
serde::Serializeandserde::Deserialize. - Flexibility: Works with any type that implements Serde traits.
Usage
1. Add Dependencies
[]
= "0.1.0-alpha.1"
= "0.1.0-alpha.1"
= { = "1.0", = ["derive"] }
2. Define a Message
use ;
3. Use in a Neuron
use NeuronImpl;
use NamespaceImpl;
use SerdeJsonCodec;
use Arc;
// Define the Neuron using the JSON codec
let neuron = new_arc;
License
Mozilla Public License, version 2.0.