Trait pulsar::DeserializeMessage

source ·
pub trait DeserializeMessage {
    type Output: Sized;

    // Required method
    fn deserialize_message(payload: &Payload) -> Self::Output;
}
Expand description

Helper trait for consumer deserialization

Required Associated Types§

source

type Output: Sized

type produced from the message

Required Methods§

source

fn deserialize_message(payload: &Payload) -> Self::Output

deserialize method that will be called by the consumer

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl DeserializeMessage for String

source§

impl DeserializeMessage for Vec<u8>

Implementors§