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§
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§
impl StructuredSerializer<MessageRecord> for MessageRecord
Available on crate feature
rdkafka only.impl StructuredSerializer<RequestBuilder> for RequestSerializer
Available on crate feature
reqwest only.impl<T> StructuredSerializer<T> for cloudevents::binding::http::Serializer<T>
Available on crate features
axum or http-binding or poem or reqwest only.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.