MCPcopy Create free account
hub / github.com/Rustixir/tokio_sky / serialize_message

Method serialize_message

examples/pulsar_processor.rs:76–82  ·  view source on GitHub ↗
(input: Self)

Source from the content-addressed store, hash-verified

74
75impl SerializeMessage for TestData {
76 fn serialize_message(input: Self) -> Result<producer::Message, PulsarError> {
77 let payload = serde_json::to_vec(&input).map_err(|e| PulsarError::Custom(e.to_string()))?;
78 Ok(producer::Message {
79 payload,
80 ..Default::default()
81 })
82 }
83}
84
85

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected