Skip to main content

StructuredDeserializer

Trait StructuredDeserializer 

Source
pub trait StructuredDeserializer
where 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§

Source

fn deserialize_structured<R: Sized, V: StructuredSerializer<R>>( self, serializer: V, ) -> Result<R>

Deserialize the message to StructuredSerializer.

Provided Methods§

Source

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".

Implementations on Foreign Types§

Source§

impl StructuredDeserializer for Message

Available on crate feature nats only.
Source§

fn deserialize_structured<R: Sized, V: StructuredSerializer<R>>( self, serializer: V, ) -> Result<R>

Implementors§

Source§

impl StructuredDeserializer for ConsumerRecordDeserializer

Available on crate feature rdkafka only.
Source§

impl StructuredDeserializer for Event

Source§

impl<'a, T: Headers<'a>> StructuredDeserializer for cloudevents::binding::http::deserializer::Deserializer<'a, T>

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

impl<'a, T: Headers<'a>> StructuredDeserializer for cloudevents::binding::http_0_2::deserializer::Deserializer<'a, T>

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