pub trait StructuredDeserializerwhere
Self: Sized,{
// Required method
fn deserialize_structured<R: Sized, V: StructuredSerializer<R>>(
self,
serializer: V,
) -> Result<R>;
// Provided method
fn into_event(self) -> Result<Event> { ... }
}Expand description
Deserializer trait for a Message that can be encoded as structured mode.
Required Methods§
Sourcefn deserialize_structured<R: Sized, V: StructuredSerializer<R>>(
self,
serializer: V,
) -> Result<R>
fn deserialize_structured<R: Sized, V: StructuredSerializer<R>>( self, serializer: V, ) -> Result<R>
Deserialize the message to StructuredSerializer.
Provided Methods§
Sourcefn into_event(self) -> Result<Event>
fn into_event(self) -> Result<Event>
Convert this Message to Event.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementations on Foreign Types§
Source§impl StructuredDeserializer for Message
Available on crate feature nats only.
impl StructuredDeserializer for Message
Available on crate feature
nats only.fn deserialize_structured<R: Sized, V: StructuredSerializer<R>>( self, serializer: V, ) -> Result<R>
Implementors§
impl StructuredDeserializer for ConsumerRecordDeserializer
Available on crate feature
rdkafka only.impl StructuredDeserializer for Event
impl<'a, T: Headers<'a>> StructuredDeserializer for cloudevents::binding::http::deserializer::Deserializer<'a, T>
Available on crate features
http-binding or reqwest or axum or poem only.impl<'a, T: Headers<'a>> StructuredDeserializer for cloudevents::binding::http_0_2::deserializer::Deserializer<'a, T>
Available on crate features
http-0-2-binding or actix or warp only.