Skip to main content

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>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

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 axum or http-binding or poem or reqwest only.
Source§

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

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