Trait cloudevents::message::StructuredDeserializer [−][src]
pub trait StructuredDeserializer where
Self: Sized, { fn deserialize_structured<R: Sized, V: StructuredSerializer<R>>(
self,
serializer: V
) -> Result<R>; fn into_event(self) -> Result<Event> { ... } }
Expand description
Deserializer trait for a Message that can be encoded as structured mode.
Required methods
fn 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
fn into_event(self) -> Result<Event>
fn into_event(self) -> Result<Event>
Convert this Message to Event
.