StructuredSerializer

Trait StructuredSerializer 

Source
pub trait StructuredSerializer<RETURN: Sized> {
    // Required method
    fn set_structured_event(self, bytes: Vec<u8>) -> Result<RETURN>;
}
Expand description

Serializer for structured mode messages.

Required Methods§

Source

fn set_structured_event(self, bytes: Vec<u8>) -> Result<RETURN>

Implementors§

Source§

impl StructuredSerializer<MessageRecord> for MessageRecord

Available on crate feature rdkafka only.
Source§

impl StructuredSerializer<RequestBuilder> for RequestSerializer

Available on crate feature reqwest only.
Source§

impl<T> StructuredSerializer<T> for cloudevents::binding::http::Serializer<T>

Available on crate features http-binding or reqwest or axum or poem only.
Source§

impl<T> StructuredSerializer<T> for cloudevents::binding::http_0_2::Serializer<T>

Available on crate features http-0-2-binding or actix or warp only.