Trait cloudevents::message::StructuredDeserializer
source · 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
.
Object Safety§
This trait is not object safe.